I have the following method:
def pop_session
session[:view_pop] = :valor
end
This is only input value in session.In view, have one table:
| <%= link_to cliente.id, :controller => "view",:action =>
"pop_session", :valor => cliente.id%> |
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 |
Marcelo J. wrote:
<%= link_to cliente.id, :controller => "view",:action =>
"pop_session", :valor => cliente.id%>
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
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!!
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:
<%= link_to cliente.id,:controller => "view",:action =>
"pop_session", :valor => cliente.id,:nothing => true %>
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?
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.
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”
Marcelo J. 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
Try, uh, link_to_remote…
–
Phlip
http://c2.com/cgi/wiki?ZeekLand ← NOT a blog!!