Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting started #17

Open
ijosorio22 opened this issue Oct 27, 2014 · 1 comment
Open

Getting started #17

ijosorio22 opened this issue Oct 27, 2014 · 1 comment
Labels

Comments

@ijosorio22
Copy link

Hello,
i'm new in rails and i want to create an app, that can create groups, i read the README but i dont know how to star, what code put on the controller for example, could someone help me please.

@dwbutler
Copy link
Owner

dwbutler commented Nov 8, 2014

You should probably read Getting Started With Rails. To bootstrap your app, you should generate a Group model and a GroupsController.

rails generate model Group
rails generate controller groups

Then in your GroupsController add a #create action:

class GroupsController < ApplicationController
  def create
    Group.create!(params[:group])
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants