How do you create scaffold in Rails without XML (HTML only)? -
the default scaffold command creates code following:
respond_to |format| format.html # show.html.erb format.xml { render :xml => @model_name} end
my application not using xml, how can configure scaffold (and other generators) create html code, , eliminate pesky respond_to |format|
block?
working in rails 3 on ubuntu.
use nifty_scaffold ryan bates: https://github.com/ryanb/nifty-generators
Comments
Post a Comment