I switched to Paperclip and it is working now :)
Should have done that a long time ago :)

Milan Dobrota wrote:
> OK, what I did was rename the application_controller.rb to 
> application.rb and it started working. But only on localhost. On the 
> server it won't create any model with attachments (even if I don't 
> specify the picture - works fine on localhost). I changed the mode to 
> 777 to make sure that there are no permission issues and nothing 
> happened. I have all of the libraries installed on server (rmagick, 
> image_science and mini_magick). If I put gem.config in environment.rb it 
> says that I need to install the gem (both on localhost and server). I've 
> read somewhere that that is the issue with rails 2.2.2.
> I have also tried specifying :with => :mini_magick in the has_attachment 
> options to force the plugin to use the specific library and it still 
> wouldn't create the model.
> Maybe I should try out paperclip.
> 
> P.S. Everything is working on the localhost. I have the feeling that 
> this is a configuration issue. Is there any way for gem dependencies to 
> break or something similar?

-- 
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 this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to