search for: new_answer

Displaying 2 results from an estimated 2 matches for "new_answer".

2006 Jan 19
8
Passing variables across forms
...t I have now: ####################### Controller def new @question = Question.new end def create @question = Question.new(params[:question]) if @question.save flash[:notice] = ''Question was successfully created.'' redirect_to :action => ''new_answer'', :id => @question else render :action => ''new'' end end def new_answer # the new answer must belong to a question... so I wasn''t sure # whether to call it new answer or add answer. @question = Question.find(params[:id]) @a...
2013 Mar 14
7
hiera_hash lookups for included classes?
When using "include" to include a class Hiera helpfully performs an autolookup on the parameters of the included class. Specially-named variable names are automatically pulled from the Hiera datastore(s) and passed into the included module. This is pretty awesome. But it looks like included resources _only_ perform a hiera() lookup. If we have a hash defined in several levels of our