premonitions/premonitions-site — pull request #5 by fjfdepedro (2014-05-22 23:25:13+00:00)
Title: Scaffold premonition

Command scaffold premonition:

rails generate scaffold Premonition title:string date:string type:string type_description:string description:string location_user:string location_premonition:string premonition_come_true:string premonition_come_true_description:string someone_else:string own_conclusions:string more_premonitions:string tags:string status:integer

Create this fields:

create mode 100644 app/assets/javascripts/premonitions.js.coffee
create mode 100644 app/assets/stylesheets/premonitions.css.scss
create mode 100644 app/controllers/premonitions_controller.rb
create mode 100644 app/helpers/premonitions_helper.rb
create mode 100644 app/models/premonition.rb
create mode 100644 app/views/premonitions/_form.html.erb
create mode 100644 app/views/premonitions/edit.html.erb
create mode 100644 app/views/premonitions/index.html.erb
create mode 100644 app/views/premonitions/index.json.jbuilder
create mode 100644 app/views/premonitions/new.html.erb
create mode 100644 app/views/premonitions/show.html.erb
create mode 100644 app/views/premonitions/show.json.jbuilder
create mode 100644 test/controllers/premonitions_controller_test.rb
create mode 100644 test/fixtures/premonitions.yml
create mode 100644 test/helpers/premonitions_helper_test.rb
create mode 100644 test/models/premonition_test.rb