Javier Quarite wrote in post #1048286:
> On Wed, Feb 22, 2012 at 2:02 PM, Roger Patrick <li...@ruby-forum.com>
> wrote:
>
>> Missing partial games/game with {:handlers=>[:erb, :builder, :coffee],
>>
>> Any ideas?
>>
>> Thanks
>> R.Patrick
>>
>>
> What do you have in your controller? Searches#show
>
>
> Javier Q

class SearchesController < ApplicationController
  def new
    @search = Search.new
  end

  def create
    @search = Search.new(params[:search])
    if @search.save
      redirect_to @search, :notice => "Successfully created search."
    else
      render :action => 'new'
    end
  end

  def show
    @search = Search.find(params[:id])
  end
end

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to