I have the following method: <pre> def pop_session session[:view_pop] = :valor end </pre> This is only input value in session.In view, have one table: <pre> <td><%= link_to cliente.id, :controller => "view",:action => "pop_session", :valor => cliente.id%></td></td> But be calling the view this method. "Template is missing Missing template ./script/../config/../app/views/view/pop_session.rhtml" I want only call the method "pop_session" from <td> -- 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 -~----------~----~----~----~------~----~------~--~---
Marcelo Junior wrote:> > I have the following method: > <pre> > def pop_session > session[:view_pop] = :valor > end > </pre> > > This is only input value in session.In view, have one table: > <pre> > <td><%= link_to cliente.id, :controller => "view",:action => > "pop_session", :valor => cliente.id%></td></td> > > But be calling the view this method. > > "Template is missing > Missing template ./script/../config/../app/views/view/pop_session.rhtml" > > I want only call the method "pop_session" from <td>And when the user clicks on your link what do you expect to happen? Try render :nothing => true, but this might not exactly provide the bese usability... -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
>Phlip wrote: > > And when the user clicks on your link what do you expect to happen? > > Try render :nothing => true, but this might not exactly provide the > bese usability... > > -- > Phlip > http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!I only want insert a value in a session. Well, I made thus: <td><%= link_to cliente.id,:controller => "view",:action => "pop_session", :valor => cliente.id,:nothing => true %></td> Now appear the followning: "Unknown action No action responded to list" And more. I want that when the focus in a text_field, the value of session appear this text_field. How I make this? -- 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 -~----------~----~----~----~------~----~------~--~---
It forgives me!!!! The error "Unknown action No action responded to list", not''s of "link_to", is of other.... Well, corrected error, the first message back to appear. "Template is missing Missing template ./script/../config/../app/views/view/pop_session.rhtml" exactly with the ":nothing => true" -- 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 -~----------~----~----~----~------~----~------~--~---
Now I placed the "render :nothing => true" in controller, and not appear that one message, but now appear in blank. I do not want that load no page, I only want to define a value for mine session. -- 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 -~----------~----~----~----~------~----~------~--~---
Marcelo Junior wrote:> Now I placed the "render :nothing => true" in controller, and not appear > that one message, but now appear in blank. I do not want that load no > page, I only want to define a value for mine session.That''s what I figured would happen. link_to is just like an old-fashioned <a href=''page.html'' /> Try, uh, link_to_remote... -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---