Displaying 3 results from an estimated 3 matches for "_contact".
Did you mean:
contact
2006 Sep 07
6
Template "specialisation"
...#39;'mydefault''
def contact
render :partial => "contact"
end
private
def show_options
render :partial => "welcome"
end
end
This only shows the app/views/welcome/_contact.rhtml page. It does not show
the layout (that does work in other controllers where I don''t use these
things). If I then enable the before_filter (is that the right usage, it
does not feel like that) then it only shows the
app/views/welcome/_welcome.rhtml page, which is not what I want eith...
2006 Mar 15
4
[NQ] How to set an initial FK for a new item of something?
Hi all,
running into a little problem here. I''ve a list of things
with a "New thing" link beneath it. When you click that link,
obviously, a new thing shall be created. Now, that works pretty
fine for things that don''t have foreign keys, but for things that
do it crashes, since there is not yet a thing.other_thing.name
available.
I suspect you can somewhere in
2006 Feb 07
2
render collection undefined local variable
Why am I getting undefined local variable ''contact'' in my partial.
This is code I used to render the partial, works in lots of other places
<%= render (:partial => ''list'', :collection => @contacts) %>
in my parital I have
<%= contact.first_name %>
if I write this way it works fine
<% for contact in @contacts %>
<%= render (:partial