Displaying 4 results from an estimated 4 matches for "flash_session_cookie_middleware".
2010 Mar 25
2
NoMethodError (private method `chomp' called for nil:NilClas
...me/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 the similar issue or possible
suggestions?
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google...
2010 Oct 25
0
Rails 3 -NoMethodError (undefined method `original_filename
...the following error:
NoMethodError (undefined method `original_filename'' for
#<ActiveSupport::HashWithIndifferentAccess:0x107c81998>):
app/models/photo.rb:29:in `upload_file=''
app/controllers/photos_controller.rb:15:in `upload''
app/middleware/flash_session_cookie_middleware.rb:14:in `call''
I think this is because all the tutorials out there aren''t Rails 3
friendly. Anyone have any ideas? Here''s the code:
# Controller
def create
@photo = @photoalbum.photos.build(:upload_file => params[:photo])
...
end
# Mode...
2010 Sep 09
1
406 Not Acceptable with swfupload
---------flash_session_cookie_middleware.rb
require ''rack/utils''
class FlashSessionCookieMiddleware
def initialize(app, session_key = ''_session_id'')
@app = app
@session_key = session_key
end
def call(env)
if env[''HTTP_USER_AGENT''] =~ /^(Adobe|Shockwave) Flash/...
2010 Mar 09
4
Plugin for uploading a folder of images?
Hi - can anyone recommend a plugin/gem for uploading a bunch of image
files at once, and converting them to attachments? Ideally one that lets
you select a folder and then uploads all of the images in that folder?
thanks, max
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to