arcane icon indicating copy to clipboard operation
arcane copied to clipboard

Rails generators

Open zeevallin opened this issue 12 years ago • 0 comments

This is how I'd like them to work

This will create your refineries folder and add a base, template refinery.

rails g arcane:install

This creates a refinery with the methods create and update.

rails g arcane:refinery Post create:content,links[title,url] update:publish

This should be the result:

class PostRefinery
  def create
    [:content, { links: [:title,:url] } ]
  end
  def update
    [:publish]
  end
end
  • [x] Basic generators
  • [ ] Allow for options to be sent in with refinery generator
  • [ ] Extend the rails scaffold

zeevallin avatar Jul 12 '13 23:07 zeevallin