Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6754119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:14:32+00:00 2026-05-26T13:14:32+00:00

I have a little problem with paperclip saving the data passed through the form…

  • 0

I have a little problem with paperclip saving the data passed through the form…
If I’m trying to save the record with .save() it won’t save.. When I look in the server/log there are no errors or warnings for the paperclip gem :-/

# trying to save the record with save() -- not working :-/
def create
  @baan_import = BaanImport.new(params[:baan_import])
  if @baan_import.save
    redirect_to(baan_imports_url)
  else
    render 'new'
  end
end

Server-log: (using .save() in controller)
https://gist.github.com/1327347

I just don’t get it why it’s working if I’m using .create instead of .save()

# trying to save the record with Model.create() -- working!
def create
  @baan_import = BaanImport.create(params[:baan_import])
  redirect_to(baan_imports_url)
end

Server-log: (using .create() in controller)
https://gist.github.com/1327359

Can some one explain me why it’s working with create and not with save??

Thanks,

Michael

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:14:33+00:00Added an answer on May 26, 2026 at 1:14 pm

    Can you show us the BaanImport model. My first guess is you’re possibly missing baan_upload in attr_accessible on your model, and as a result, Rails will not let you mass assign the file parameter for upload.

    Can you also confirm (would appear as though it’s properly set up) that your form has html => {:multipart => true} as an option?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have little problem with boost::asio library. My app receive and process data asynchronously,
I have a little problem with a query. I'm selecting data using the between
I have a little problem with encoding. The data in db is ok, when
I have a little problem with a class I am currently writing a save
I have a little problem. When I click send on my contact form I
I have a little problem with plists. I don't know how to read data
I'm have little problem in retrieving the data from a table here's the code:
I have a little problem with Enterprise Architect by Sparx System. Im trying to
I have a little problem I am trying to use MartkItUp JQuery rich text
I have little problem with printing data like this, I have written script like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.