Thanks a million !!! You saved my day....
Although I really don't understand what this little command does and why it's there. Anyway, even if I heard that I shouldn't use RMagick, I can go on my project. Christophe Le 13 avr. 2010 à 17:53, Andy Jeffries a écrit : > In the ruby console, this works : > Loading development environment (Rails 2.3.5) > >> require 'RMagick' > => [] > > However, in my controller file the following command > > require 'RMagick' > produces : > > MissingSourceFile in ImagesController#serve_image > > Weird that one works but the other doesn't... > > After googling around, I tried the following: > - Install RMagick as a gem = no change > > Did you add the config.gem line for RMagick to your environment.rb file and > restart your Apache/server: > > config.gem "rmagick", :lib => "RMagick2" > > You then shouldn't need the require line in your code, it should just be > available. > > Cheers, > > > Andy > > -- > 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. -- 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.

