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

Explain about variables?

1 Answers  


Explain about methods?

1 Answers  


Explain ruby ranges. What are the ways to define ranges?

1 Answers  


What is sysread method in Ruby?

1 Answers  


Explain about class libraries in ruby?

1 Answers  


Explain ruby strings.

1 Answers  


Tell me what does ruby name refers to?

1 Answers  


Explain me what is the difference between symbol and string?

1 Answers  


Explain retry statement in ruby.

1 Answers  


How do you handle exceptions in ruby code?

1 Answers  


Do you know how ruby looks up a method to invoke?

1 Answers  


How to check whether a directory exist or not in Ruby?

1 Answers  


Categories