Hi
I’m hoping someone can help me with the following:
I am trying to use a redirect to pass variables as a post request but
may be having trouble with the syntax.
redirect_to(:controller => ‘individual’, :action => ‘dashboard’, :id
=> c.id, :display_year => year, :display_week => week, :name
=> :custom, :method => :post)
I have been able to achieve a similar effect using a link_to method
(as below) - but am unable to achieve the same result using the
redirect.
<%= link_to c.name, {:controller => ‘individual’, :action =>
‘dashboard’, :id => c.id, :display_year => year, :display_week =>
week], :name => :custom}, :method => :post %>
Thanks in advance