Hi,

you can try from other perspective, if you already have the 
functionality to paginate the records in your model or controller and 
the only need that you have are the parameters, you can try with a 
simple map.connect like this =>

map.connect ":controller/:id_chapter/:page"

and ActionController will map =>

i rann it in the rails console =>

>> rs.recognize_path "chapter/2/4"

{:action => 'index', :page => "2", :id_chapter => "4", 
:controller=>"chapter")

this variables are aviable in your @params.

but you'll be better if take the paginate-plugin approach, don´t put 
that kind of logic in your route sistem.

Pdta: Sorry by mi English

Cristian Vasquez
Medellín-Colombia
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to