Jakub Kaláb

Results 31 comments of Jakub Kaláb

Btw interesting thing the ``` ruby expect(:link_to).to generate html ``` Confused me for a moment, before I realized it's a custom matcher.

``` haml = nav do - categories.each do |category| %li{ class: active_if(selected_category == category) } = link_to category.capitalize, events_path(category: category), no_container: true ``` (`active_if` just returns 'active' if given true,...

I do, but that's not flexible enough for my (and presumably other's) needs. The problem here is (among others), that when I first come to this page with category tabs,...

ad 1st paragraph: exactly. ad 2nd one: I don't override the url param by setting `selected_category` elsewhere, but I may set `selected_category`, but keep the url `/events`

also, I'd like the first tab to be default, but don't want every `link_to` to pass the first category, so if the param is missing entirely, I set selected_category to...

Well, I'd agree that wanting the active class on a link that's realy different from the current page would be "unexpected". But I think that the latter case I mentioned...

I'm afraid that's beyond my abilities. I went over the code, but 1) I don't understand a lot of it, since I'm completely unfamiliar with pytest internals, hooks, etc. and...

Hi and thanks @seifertm, this is pretty helpful, even though I understood most of this before, at least conceptually (I didn't know how exactly does `pytest.hookimpl` work, but from your...

I'm having the same problem, even though ```bash (django3.6) [jakub@incanus-notebook datastore-kredit]$ which pip /home/jakub/.pyenv/shims/pip (django3.6) [jakub@incanus-notebook datastore-kredit]$ pyenv which pip /home/jakub/.pyenv/versions/django3.6/bin/pip (django3.6) [jakub@incanus-notebook datastore-kredit]$ pip -V pip 18.1 from /home/jakub/.pyenv/versions/3.6.9/envs/django3.6/lib/python3.6/site-packages/pip...

BTW, if you don't want to support the main case here - not using copies, accessing properties on `@ManyToOne` related entity - could you please tell me if there's some...