arr = []
b={:a => "option1", :b => "option2"}
b.each_pair{ |key,value| arr << "#{key}=#{value}" }
...
Ruby HTML query string
by jalapinto.myopenid.com,
April 29, 2010 00:04,
5 refactorings, tagged with ruby, html, query, params
def build_criteria(data_cols, i)
filterHTML = ''
typeObjects = ''
...
Ruby Helper Method could be more...
by Danny Peck,
April 23, 2009 20:53,
5 refactorings, tagged with ruby, html, content_tag, select_tag
Any help is appreciated.
<%= (@post.category ? @post.category.name : '') + ' ' + link_to(@post.title, post_path(@post)) %>
Ruby Handling nil object
@post.category can be nil, ...
Trying to create the query ...