Ruby on Rails

    How to create a new rails web application

    Run "rails" followed by the name of your desired application inside the Rails:                             

    $ rails my_new_app
    

    That will create a directory called my_new_app with the correponding files inside.

    In case you want to connect your application with a MySQL database you will need to run the following command instead:

    $ rails my_new_app -d mysql

    If your Rails version is older than 3.0.0 you will need to execute:

    $ rails new my_new_app

    If you plan to use the MySQL database included in a BitNami stack for your application, make sure that the my_new_app/config/database.yml includes the right connection parameters. On Unix, the default socket for a BitNami Stack is located in /installdir/mysql/tmp/mysql.sock.

    Tag page (Edit tags)
    • No tags
    Pages that link here
    Page statistics
    37390 view(s), 10 edit(s) and 941 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments