Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Tell me how you can create a controller for subject?



Tell me how you can create a controller for subject?..

Answer / Rajkumar

{"controller": "To create a controller in Ruby on Rails, follow these steps: 1. Generate the controller using the command `rails generate controller Subject`, where 'Subject' is your desired controller name.n2. Run the migration to create the associated database table for your controller (if needed) by executing `rails db:migrate`.n3. Open the newly created file in the app/controllers directory and define the methods you want for your controller."}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Please explain the three levels of access control for ruby methods?

1 Answers  


Tell us what is class libraries in ruby?

1 Answers  


Explain ruby data types.

1 Answers  


Tell us the types of variables available in ruby class?

1 Answers  


Explain the use of ensure statement in Ruby?

1 Answers  


Tell me what is the difference between ruby 1.9 and ruby 2.0?

1 Answers  


What's the difference in scope for these two variables: @name and @@name?

1 Answers  


Mention what is the difference between a gem and a plugin in ruby?

1 Answers  


Where does a scope change in a ruby program?

1 Answers  


How would you freeze an object in ruby?

1 Answers  


Tell me what is the difference between calling super and calling super()?

1 Answers  


What is a struct in ruby?

1 Answers  


Categories