Work smarter, not harder (how to use the "rails g resource" command) - DEV Community

A resource in Rails is a representation of a model, controller, and views that work together to provide CRUD (Create, Read, Update, Delete) functionality for a specific type of object. For example, if you were building a blog application, you might have a resource for posts, which would include a Post model, a Posts controller, and views for displaying, editing, and creating posts.To use the rails g resource command, you'll need to open up your terminal and navigate to the root directory of your Rails application. From there, you can run the command followed by the name of your resource, like this:.
Work smarter, not harder (how to use the "rails g resource" command) - DEV Community #ruby #rubydeveloper #rubyonrails #dev https://rubyonrails.ba/single/work-smarter-not-harder-how-to-use-the-rails-g-resource-command-dev-community

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles