Ruby on Rails Tuesday, October 2, 2012

On Oct 2, 2012, at 5:58 AM, ruby rails wrote:

> I am building a task management application in ROR. I am new to ROR and
> learning it. While adding tasks, I need to select a projects drop down
> list and the team members of that project will be shown as drop down. I
> am using ajax for it. But I see that in the response data I am getting
> the complete htmls with header (not only the drop down htmls). Please
> help.

You need to specify to render without the outer layout in your controller:

render :layout => false

Walter

--
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 https://groups.google.com/groups/opt_out.

No comments:

Post a Comment