Displaying 2 results from an estimated 2 matches for "contactslist".
Did you mean:
contacts_list
2010 Mar 26
2
file upload error(can't convert Tempfile into String)
i tried a method to implementa file uploader by using amethod below
this is ma controlller method to upload
def save_imports
Contactslist.save(params[:list])
render :text => "File uploaded successfully"
this is ma view file
.remote
- form_for(@list, :url=> save_imports_list_path(@list, :format =>
"js"), :html => { :multipart => true, :target => "uploading", :onsubmit
=> &q...
2006 Feb 08
1
Weird validation issue
...he camper record was there but didn''t have
anything for contact_id or booking_id.
if !camper_already_attending && @contact.save && @camper.valid? &&
(@camper.contact = @contact) # (Yes, that last equal should
definitely be a single one!)
unless @booking.contactslist.include?( @contact.id )
# Need to add a role of "SU Camper" to the contact here
camper_role = Role.find(:first, :conditions => "name = ''SU Camper''")
@contact.add_role(camper_role)
camper_added = false
particular_error...