Wednesday, February 22, 2012

[Rails] Re: rendering partial problem.

Javier Quarite wrote in post #1048286:
> On Wed, Feb 22, 2012 at 2:02 PM, Roger Patrick <lists@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate