Skip to content

Instantly share code, notes, and snippets.

@jraczak
Created March 9, 2012 00:01
Show Gist options
  • Save jraczak/2004244 to your computer and use it in GitHub Desktop.
Save jraczak/2004244 to your computer and use it in GitHub Desktop.
def show
@project = Project.find(params[:id])
@requirement = @project.requirements.build
respond_to do |format|
format.html # show.html.erb
format.json { render :json => @project }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment