ruby on rails - Problem with nested resources with Kaminari pagination gem -


Can not find cameraman to work with nested resources. Here is a description of my problem if anyone was able to deal with this issue, thinking it.

My routes look like this:

  Resources: Artists do the resource: end of pictures   

In my opinion, my Is nearby:

  lt;% = Paganet picture, params => {: Controller = & gt; 'Paintings',: Action => 'Index'}%>   

The initial / base URL looks like this:

  http: // localhost / artists / foobar / paintings   < P> But clicking on a cameraman paged link will send the URL to:  
  http: // localhost / paintings? Artist_id = foobar and page = 2   

This is considered:

  http: // localhost / artists / foobar / paintings? Page = 2    

I still have the same problem - if anyone else on this page When I end up, I solve it:

In the routes. RB requires you to move your "outer" route for your nested bottom, so if you had:

  resources: question processing: topic_assessor processing: end the question  < / Pre> 

You need to change it:

 Resource: Subject_Reserve resource: end of questions: question   

The link has started working as expected above.

Comments