Hi, I''ve got an issue that I''m running into when I try to
display a new
month in a calendar program I''m working on. I have a view show_month
and
in that view there are a couple of links, one to the previous month and
one to the next month. They look more or less like this:
<%= link_to ''Next Month'' :action =>
''show_month'', :m => ( @month + 1),
:yr => @year %>
Where @month and @year are instance variables defined in show_month and
passed to the view. I know they''re being used because I use @month and
@year in other parts of the view, so that''s not the issue. The issue is
that the link_to thingy is not passing the values :m and :yr to
show_month at all, and I''m at a total loss as to how to get that to
work. I''ve tried this several different ways, too, without any luck.
Any
help would be appreciated. Thanks!
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---