From: Jay Levitt Date: 2011-08-29T20:47:25+09:00 Subject: Re: Non-literal hash elements in argument list? Bartosz DziewoƄski wrote in post #1018817: > I'm pretty sure you just want Hash#merge. You know, I think you're right - I never thought of it like that. link_to "Example 1", "http://www.example.com", {:some => :option}.merge(needs_confirmation? ? {:confirm => "Are you sure?"} : {}} link_to "Example 2", "http://www.example.com", {:some => :option}.merge(unique_link_id) def unique_link_id {:id => "our_link_#{user.id}"} end Thanks for removing my mental block. -- Posted via http://www.ruby-forum.com/.