--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/TOTAudTTAa8J.
For more options, visit https://groups.google.com/groups/opt_out.
On 9 November 2012 07:27, Erwin <yves_...@mac.com> wrote:You could try
> When I have this pattern
>
> sign_me(@user, :event => :authentication, :subdomain => subdomain)
>
> how can I write it to avoid sending the :subdomain option if subdomain.nil?
> ( if possible ..)
>
> sign_me(@user, :event => :authentication #?, :subdomain => subdomain
> unless subdomain.nil? )
sign_me(@user, :event => :authentication, (:subdomain =>
subdomain unless subdomain.nil?) )
or
sign_me(@user, :event => :authentication, :subdomain =>(subdomain unless subdomain.nil?) )
Colin
>
> --
> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/TOTAudTTAa8J.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.