search for: resource_port

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

Did you mean: source_port
2011 Jul 24
4
Downloading files not stored in database?
...Browse files for download</h1> <% form_for(:download, :url=>{ :controller=>"download", :action=>"download"}, :html => {:multipart => true}) do |f| %> <table> <tr> <th>Files</th> </tr> <% @files = Dir.glob("/home/resource_portal/website/public/data/upload/*") %> <% @files.each do |file| %> <tr> <td><%= link_to file, :controller => "download", :action => :download %></td> </tr> <% end %> </table> <% end %> I dont think I need the form_for line...
2011 Jun 12
3
Problem with undefined variable current_user
...with my test users and the exception only occures when attempting to edit a profile. Controller and model are attached. Cheers, Jen. Error: NameError in UsersController#edit undefined local variable or method `current_user'' for #<UsersController:0x9ffad80> |Rails.root: /home/resource_portal/website| Application Trace <http://localhost:3000/users/1/edit#> | Framework Trace <http://localhost:3000/users/1/edit#> | Full Trace <http://localhost:3000/users/1/edit#> |app/helpers/sessions_helper.rb:17:in `signed_in?'' app/controllers/users_controller.rb:91:in `...