Easy mysql and Ruby on rails pls

Discussion in 'Web Design and Development' started by Cabbit, May 29, 2008.

  1. Cabbit macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #1
  2. Cabbit thread starter macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #3
    ok i followed that one and got it working, how do i set up mysql and do i use xcode for ruby development or textmate or taco or what?
     
  3. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #4
    What do you mean by setting up MySQL? For management, I use CocoaMySQL.
    I use Textmate for developing.
     
  4. Cabbit thread starter macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #5
    no i mean just installing mysql without needing mamp
     
  5. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #6
    Oh, there's a link in hivelogic's guide, right at the end.
     
  6. Cabbit thread starter macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #7
    get this error when starting ruby on rails

    HTML:
    => Booting Mongrel (use 'script/server webrick' to force WEBrick)
    => Rails application starting on http://0.0.0.0:3000
    => Call with -d to detach
    => Ctrl-C to shutdown server
    ** Starting Mongrel listening at 0.0.0.0:3000
    Exiting
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in `initialize_without_backlog': Address already in use - bind(2) (Errno::EADDRINUSE)
    	from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in `initialize'
    	from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:93:in `new'
    	from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:93:in `initialize'
    	from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:139:in `new'
    	from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:139:in `listener'
    	from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_'
    	from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `call'
    	from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:50:in `initialize'
    	 ... 14 levels...
    	from /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
    	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    	from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    	from ./script/server:3
    
    and on the html page

    Status: 500 Internal Server Error Content-Type: text/html
    Application error (Rails)
     
  7. Cabbit thread starter macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #8
    new errors

    Code:
    MissingSourceFile in Rails/infoController#properties
    
    no such file to load -- sqlite3
    RAILS_ROOT: /Users/davidroy/demos/brablog
    Application Trace | Framework Trace | Full Trace
    This error occurred while loading the following files:
       sqlite3
    Request
    
    Parameters:
    None
    Show session dump
    Response
    
    Headers:
    {"cookie"=>[],
     "Cache-Control"=>"no-cache"}
    Code:
    Routing Error
    
    No route matches "/brablog" with {:method=>:get}
     
  8. Cabbit thread starter macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #9
    ok i got it all working now but im trying to use

    Code:
    class BlogController < ApplicationController
      scaffold :post
    end
    
    but i get the error

    Code:
    NoMethodError in BlogController#index
    
    undefined method `scaffold' for BlogController:Class
    RAILS_ROOT: /Users/davidroy/demos/brablog
    
    Application Trace | Framework Trace | Full Trace
    app/controllers/blog_controller.rb:2
    Request
    
    Parameters:
    
    None
    Show session dump
    
    Response
    
    Headers:
    
    {"cookie"=>[],
     "Cache-Control"=>"no-cache"}
     
  9. Cabbit thread starter macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #10

Share This Page