ruby on rails application help.

0 views
Skip to first unread message

Rahul Khobragade

unread,
Dec 31, 2009, 11:10:58 AM12/31/09
to Ruby on Rails: Talk
Hello Sir,

I am student wants to learn ruby on rails programming and want to
become ruby on rails programmer. after installing ruby and installing
rails through command line
gem install rails --remote and after creating application as ruby
script\generate.it shows message webrick server started on port :3000.
when i start application on browser it shows error message
something went wrong.

if you can help me please help me.
i will be very thankful to you

Rails ROR

unread,
Jan 1, 2010, 7:33:23 AM1/1/10
to rubyonra...@googlegroups.com
Hello,

When you create a rails program, You need to follow few steps.

1. First create a project rails -d mysql project name

2. Create Model, view, controllers[ if you want to see some output]

3. Rake db:create

4. Rake db:migrate

5. Start your server

You might have missed some step


--

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



Bruno Grasselli

unread,
Jan 1, 2010, 9:58:35 AM1/1/10
to rubyonra...@googlegroups.com
If you are using SQLite, you don't need to use rake db:create, only rake db:migrate (to create the database's tables). If you are using MySQL, then you need to create the database (rake db:create) before create the tables.

If doesn't work, please copy paste the last lines of your log/development.log file.



2010/1/1 Rails ROR <develo...@gmail.com>



--
Bruno Grasselli
Blog: http://brunograsselli.com.br
Twitter: http://twitter.com/grasselli
Reply all
Reply to author
Forward
0 new messages