On Fri, Oct 30, 2009 at 5:52 PM, Cs Webgrl <[email protected]
> wrote:

>
> Gregory Mazurek wrote:
>
> > Can't you do this? <%= link_to_unless(@property.agent.nil?, "view bio",
> > {agent_url, :name => @property.agent}) %>
>
>
>
> Unfortunately that generates an error:
>
> compile error
> /show.rhtml:138: syntax error, unexpected tASSOC, expecting '}'
> ...                      :agent => @property.agent.permalink}) )...


Sorry, it's tough for me to guess with just this.  As a check, you can
replace {agent_url, :agent => @property.agent.permalink}  with  {:controller
=> 'agents', :action => 'show', :agent => @property.agent.permalink} and see
if that works.

-- 
www.abetaday.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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to