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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -