Skip to content

Instantly share code, notes, and snippets.

@pullmonkey
Created November 16, 2011 04:27
Show Gist options
  • Save pullmonkey/1369234 to your computer and use it in GitHub Desktop.
Save pullmonkey/1369234 to your computer and use it in GitHub Desktop.
formgen generated files
rails generate skizmo:form Foo
With Foo.rb (model like this):
class Foo < ActiveRecord::Base
has_many :bars
belongs_to :baz
accepts_nested_attributes_for :bars
accepts_nested_attributes_for :baz
end
This will create:
public/javascripts/jquery.add_remove_links.js
app/helpers/add_remove_links_helper.rb
app/views/foos/new.html.erb
app/views/foos/edit.html.erb
app/views/foos/_form.html.erb
app/views/foos/_bar_fields.html.erb
app/views/foos/_baz_fields.html.erb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment