Displaying 2 results from an estimated 2 matches for "current_fold".
Did you mean:
current_file
2006 Feb 15
6
error_messages_for trouble
...to :action => "list", :id => params[:id]
end
end
#### View ########################
<%= error_messages_for(:my_folder) %>
<%= start_form_tag :action => ''create_folder'' %>
<%= hidden_field "folder", "parent_id", :value => @current_folder.id %>
<%= text_field "folder", "name", "size" => 20 %>
<%= submit_tag "New Folder" %>
<%= end_form_tag %>
--
Posted via http://www.ruby-forum.com/.
2008 May 19
4
REST urls and Authenticity Token
...etc. To make the url
more clear for the user, I would like to use the name of a given folder
(record). That is why is use the following : folder_path(folder.name) .
But in my controller, I can''t use redirect_to folder_url(@folder), so I
use something like
redirect_to(folder_path(session[:current_folder].name)) instead.
My question is do I brake some "REST rule" by doing this? Or is there a
better, more cleaner way for displaying the folder names and still be
using id''s?
Thank you in advance for your replies
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~...