Rails generator requested: $ARGUMENTS
Generates Rails resources including models, controllers, migrations, and scaffolds with proper naming conventions.
/plugin marketplace add bastos/rails-plugin/plugin install bastos-ruby-on-rails@bastos/rails-pluginRails generator requested: $ARGUMENTS
First, analyze the request to determine the appropriate Rails generator:
Available generators:
model - Create model with attributes (e.g., model User email:string name:string)controller - Create controller with actions (e.g., controller Users index show)scaffold - Full CRUD resource (model, controller, views, routes)migration - Database migration onlyresource - Model, controller, routes (no views)mailer - Email mailer with viewsjob - Background job (ActiveJob)channel - ActionCable channelstimulus - Stimulus controllerFor the requested generation:
rails generate command before runningRails conventions to follow:
Common attribute types:
string - Short text (varchar)text - Long textinteger - Whole numbersdecimal - Precise numbers (money)boolean - True/falsedatetime - Date and timereferences - Foreign key (belongs_to)jsonb - JSON data (PostgreSQL)If no arguments provided, ask what to generate and provide examples.
/generateGenerate ready-to-execute hypershift cluster creation commands from natural language descriptions
/generateGenerate documentation from TypeScript/JavaScript code, OpenAPI specs, GraphQL schemas, and SpecWeave specifications.