Translate

Tuesday, 18 August 2015

How we can generate and run the application without the use of database in Ruby on rails?

-The program can be written in a normal file and executed by editing the file environment.rb and uncommenting the line where it is included. 

-The program is as follows: 

Path => rootpath conf/ environment.rb
# This is the comment that needs to be used as it tells that use this only with the rails. 
config.frameworks -= [ :action_web_service, :action_mailer,:active_record ]

-The setting of the path needs to be done to show the correct fetching of the file and insertion of the records.

No comments:

Post a Comment