search for: entries_path

Displaying 2 results from an estimated 2 matches for "entries_path".

Did you mean: entries_match
2008 Jan 14
5
Only "form_tag" support uploading file?
...true do -%> <p><label for="entry_image">Image</label><br/> <%= file_column_field ''entry'', ''image'' %></p> <%= submit_tag ''create'' %> <% end -%> <%= link_to ''Back'', entries_path %> ===================== However, in my real app, I scaffold and nest the resource to RESTful, the view is as follow & it errors: "Do not know how to handle a string with value ''readme.jpg'' that was passed to a file_column. Check if the form''s encoding has...
2010 Aug 13
11
Link to remote and the equivalent in Rails 3
...a basic understand of UJS and see the benefits etc ... but all I want to do is click a link, some controller action trigger, a render :update do |page| call to trigger and then I''ll be happy!! But no luck so far ... So ... with the following line: <%= link_to "Add Photos", entries_path, {:controller => :entries, :action => :showphotos, :remote => true} %> I get the following error: Started GET "/entries" for 127.0.0.1 at Fri Aug 13 23:13:18 +0100 2010 Processing by EntriesController#index as JS Rendered entries/index.js.erb (0.2ms) Completed 200 OK in 15...