Jeffrey
unread,Aug 4, 2009, 9:13:27 PM8/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Goldberg
Forgive me if this is the wrong place to ask, but I have a question
regarding your git swfupload-rails-authentication.
I like the way that the app works with authentication. So I tried to
get it setup inside of a Bort based app (2.2). Perhaps you don't have
experience with Bort or don't care, if so, don't worry about my
question. But if you do have a few minutes to spare I'd appreciate the
help.
The error that I get is triggered by the assets_helper.rb file,
specially:
assets_path(session_key => cookies[session_key],
request_forgery_protection_token => form_authenticity_token)
The message that appears when I select "new asset" is:
NoMethodError in Assets#new
Showing app/views/assets/new.html.erb where line #8 raised:
Extracted source (around line #8):
8: upload_url : '<%= new_asset_path_with_session_information
%>',
Perhaps this is because Bort uses db sessions and your app uses
cookies. Any thoughts on how to change your code for the
assets_helper.rb to work with db sessions?