Example Application On Ruby On Rails
Example Application On Ruby On Rails
Convention Over Configuration: Rails has opinions about the best way to do
many things in a web application, and defaults to this set of conventions,
rather than require that you specify minutiae through endless configuration
files.
Rails Application Framework
Ruby on Rails is open source software, More than 5,000 people already
have contributed code to Rails.
http://ancient-ridge-9795.herokuapp.com/
These are the files which rails automatically generates to create the
framework for our application.
Step 3:
Create the needed controller, model and views
for our application
I will keep simple functionality in which a user
can post message
This creates a controller “home” along with views in the app/view/home directory.
Rails will create several files for you, including app/views/home/index.html.erb
file. This is the template that we will use to display the results of the index action
(method) in the home controller. Open this file in your text editor and edit it to
contain the code that you want to display in your index page
Editing homepage
The See Messages and Write Messages will appear on the main page
Step 7: Text on the page
Edit the index.html file, enter text which will
appear on the screen
The See Messages and Write Messages will appear on the main page
Step 8: Set Background images and color
Edit the home.css file, to set background image
and text color
The See Messages and Write Messages will appear on the main page
Step 8: Testing the application
On the command line enter
rails server
• http://fuelyourcoding.com/creating-your-first- ruby-on-rails-
application-from-scratch/