On Jul 30, 11:24 am, Dis Tec
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> Pagination
>
> I am using an old tutorial which is tripping me right up as I have the
> latest version of rails installed. I''m persisting as I think
I''m
> learning a little bit more about how RoR works. However after installing
> the scaffolding plug-in to fix an earlier problem I now have a problem
> with the pagination. I have followed this workaround:
>
> http://robots.thoughtbot.com/post/159807004/gotchas-when-upgrading-to...
>
> and attempted to place require will_paginate in the environment.rb
> location, but I find that I cannot then rub the Webrick server. I get
> the following error.
>
> home/brett/RoR/Apps/OpenBenefit/depot/config/environment.rb:42:
> undefined local variable or method `will_paginate'' for main:Object
> (NameError)
>
> How can I fix this, Am I doing something stupid?
you''re missing some quote marks around will_paginate. More up to date
advice would be to use the config.gem stuff to load will_paginate
Fred>
> B
> --
> Posted viahttp://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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.