SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Installing plugin

    I'm working on my first ruby project and it involves uploading images. I got file_column to work but I don't like how it stores each image in a different directory based on the 'id'.

    I found upload_column which was based on file_column but I don't think I'm installing it correctly.

    I looked around the web and couldn't find anything that spelled out how to install something like this.

    First I tried installing through the command line:

    Code:
    ruby script/plugin install svn://rubyforge.org/var/svn/uploadcolumn/tags/stable
    This did nothing, no messages at all.

    Then I downloaded the upload_column0.2.zip package and put it under the 'vendor/plugins' directory in my project.

    This gives me many errors when I try to start the server.

    Any help would be mucho appreciated. I'm probably overlooking something here.

  2. #2
    SitePoint Addict myrdhrin's Avatar
    Join Date
    Jul 2004
    Location
    Montreal
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is the error the server is giving? (the actual stacktrace)
    Jean-Marc (aka Myrdhrin)
    M2i3 - blog - Protect your privacy with Zliki

  3. #3
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright I don't know if this is what you want but here is what I'm seeing.

    The line that sticks out to me is 'unitialized constant Rails::UploadColumn (NameError)

    Code:
    => Booting WEBrick...
    c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/servers/webrick.rb:11: warning: already initialized constant OPTIONS
    ./script/../config/../config/environment.rb:8: warning: already initialized constant RAILS_GEM_VERSION
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in `const_missing': uninitialized constant Rails::UploadColumn (NameError)
            from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `send'
            from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'
            from ./script/../config/../vendor/plugins/release_prep/init.rb:5:in `load_plugin'
            from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in `load_plugin'
            from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
            from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:348:in `load_plugin'
            from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:in `load_plugins'
            from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:158:in `each'
             ... 13 levels...
            from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
            from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
            from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'
            from script/server:3

  4. #4
    SitePoint Addict myrdhrin's Avatar
    Join Date
    Jul 2004
    Location
    Montreal
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    did you freeze your framework by any chance?
    Jean-Marc (aka Myrdhrin)
    M2i3 - blog - Protect your privacy with Zliki

  5. #5
    SitePoint Member
    Join Date
    Jan 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did not.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •