search for: assets_controller

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

Did you mean: asset_controller
2010 Mar 25
2
NoMethodError (private method `chomp' called for nil:NilClas
...uced the following error. NoMethodError (private method `chomp'' called for nil:NilClass): /usr/lib/ruby/gems/1.8/gems/mime-types-1.16/lib/mime/types.rb:665:in `type_for'' /usr/lib/ruby/gems/1.8/gems/mime-types-1.16/lib/mime/types.rb:730:in `type_for'' app/controllers/assets_controller.rb:180:in `new_asset_from_params'' haml (2.2.22) rails/./lib/sass/plugin/rails.rb:20:in `process'' app/middleware/flash_session_cookie_middleware.rb:15:in `call'' It seems that the error has something to do with Mime-types. But I could not work it out. Does anyone have...
2006 Feb 27
0
Example code for select_from_db (a.k.a. combo box)
...:with => "''value=''+escape(value)") output << content_tag(''span'', '''', html_options = { :id => "#{tag}_other_status" }) output << "</div>" end ==== app/controllers/assets_controller.rb ==== def updateform case params[:field] when "select" case params[:value] when "other" render :partial => "show_other", :locals => { :params => @params } else render :partial => "hide_other&quot...