Hello, I have used <%= link_to "Back", :back %> many times with no issues. This time I am getting this error: Unknown action No action responded to index. Actions: access_denied, check_roles, create, new, role_requirements, role_requirements=, and update Any thoughts on this? I really need to use :back as the page I am trying to go "back" to is part of a somewhat complex multipage form. And I don''t want to resend a lot of info back to the form just to get off of the tiny static "privacy policy" page. Thanks for the help. Elliott
Anybody have any ideas on this one? Thanks On May 6, 12:16 pm, elliottg <x...-+PdThUrr9bOXUBVsB0ZYTw@public.gmane.org> wrote:> Hello, > > I have used <%= link_to "Back", :back %> many times with no issues. > This time I am getting this error: > > Unknown action > No action responded to index. Actions: access_denied, check_roles, > create, new, role_requirements, role_requirements=, and update > > Any thoughts on this? I really need to use :back as the page I am > trying to go "back" to is part of a somewhat complex multipage form. > And I don''t want to resend a lot of info back to the form just to get > off of the tiny static "privacy policy" page. > > Thanks for the help. > Elliott
error log? elliottg wrote:> Hello, > > I have used <%= link_to "Back", :back %> many times with no issues. > This time I am getting this error: > > Unknown action > No action responded to index. Actions: access_denied, check_roles, > create, new, role_requirements, role_requirements=, and update > > Any thoughts on this? I really need to use :back as the page I am > trying to go "back" to is part of a somewhat complex multipage form. > And I don''t want to resend a lot of info back to the form just to get > off of the tiny static "privacy policy" page. > > Thanks for the help. > Elliott >-- ==============================================================================Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz ===============================================================================
Elliott Golden wrote:> Hello, > > I have used <%= link_to "Back", :back %> many times with no issues. > This time I am getting this error: > > Unknown action > No action responded to index. Actions: access_denied, check_roles, > create, new, role_requirements, role_requirements=, and update > > Any thoughts on this? I really need to use :back as the page I am > trying to go "back" to is part of a somewhat complex multipage form. > And I don''t want to resend a lot of info back to the form just to get > off of the tiny static "privacy policy" page. > > Thanks for the help. > ElliottThat error message seems to indicate that :back creates a link to the index action of the controller. The message says that it can''t find an index action and then lists the actions it did find. My book says :back refers to the url in the HTTP_REFERER header in the current request. Maybe :back isn''t finding any url, so link_to is defaulting to :index? -- Posted via http://www.ruby-forum.com/.
7stud -- wrote:> > My book says :back refers to the url in the HTTP_REFERER header in the > current request. Maybe :back isn''t finding any url, so link_to is > defaulting to :index?I tested that out, and it seems that when you don''t specify an action for link_to, the action defaults to the current action. -- Posted via http://www.ruby-forum.com/.