Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jhjguxin/3074080 to your computer and use it in GitHub Desktop.
Save jhjguxin/3074080 to your computer and use it in GitHub Desktop.
Creating nested resources in ruby on rails 3 and updating scaffolding links and redirection
@trooney
Copy link

trooney commented Aug 5, 2014

Awesome!

@gtheys
Copy link

gtheys commented Oct 22, 2014

$ rails generate scaffold account name:string
$ rails g scaffold campaign name:string account:belongs_to

Can be used to create the relations

@chaz1505
Copy link

great tutorial thanks

@ricardocastaneda
Copy link

I set myself into the large list of grateful people for this very well explained tutorial. Thanks also to those people from comments who shared code.

@lortza
Copy link

lortza commented Nov 18, 2015

Beautiful work. Thank you!

@khatchad
Copy link

khatchad commented Mar 9, 2016

@nguyenj Any luck with rails 4?

@khatchad
Copy link

@nslindtner This fork has the part about the routes.rb changes.

@EricLondon
Copy link

EricLondon commented Jun 6, 2016

name: Eric, parent: Paul, sounds a lot like my family. Thanks for the credit.

Here's the original blog post :)

Internet pro tip: when you copy someone's post, you should cite the source.

@DivyaChouhan
Copy link

Very well explained tutorial. It helps a lot. Thanx...

@mices
Copy link

mices commented Apr 3, 2017

You don't say what to put for else if validations cause return to form instead of save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment