search for: newsletterpost

Displaying 1 result from an estimated 1 matches for "newsletterpost".

2006 Jan 22
2
File_column not keeping value during page reloads
...ile to a newsletter posting. It works fine if I get the form right the first time, but if I get an error, such as not typing in a required field, and the form re-displays, my file selection box reverts to "no file selected." Here''s my relevant controller code: def new @newsletterpost = Newsletterpost.new end def add_post @newsletterpost = Newsletterpost.new(params[:newsletterpost]) @newsletterpost.user_id = @session[:user].id if @newsletterpost.save flash[:notice] = "Newsletter posting was successfully created." redirect_...