<%= link_to([image_tag photo.data.url(:small)],resort_path(@resort)) %> and i get this warning... warning: parenthesize argument(s) for future version it works but with the warning. All i''d like to do is just a link_to to show a photo and link to a bigger version. -- Posted via http://www.ruby-forum.com/.
On Aug 31, 12:09 pm, bingo bob <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> <%= link_to([image_tag photo.data.url(:small)],resort_path(@resort)) %> > > and i get this warning... > > warning: parenthesize argument(s) for future version >it''s saying it wants image_tag(...). You probably don''t want the [] Fred> it works but with the warning. > > All i''d like to do is just a link_to to show a photo and link to a > bigger version. > -- > Posted viahttp://www.ruby-forum.com/.
without the []''s i get this. undefined method `symbolize_keys!'' for "/resorts/110":String ? -- Posted via http://www.ruby-forum.com/.
On Aug 31, 12:32 pm, bingo bob <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> without the []''s i get this. > > undefined method `symbolize_keys!'' for "/resorts/110":String > > ?You shouldn''t if you parenthesize things the way it wants you to. Fred> -- > Posted viahttp://www.ruby-forum.com/.
<%= link_to(image_tag(photo.data.url(:small)), resort_path(@resort)) %> On Aug 31, 7:32 am, bingo bob <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> without the []''s i get this. > > undefined method `symbolize_keys!'' for "/resorts/110":String > > ? > -- > Posted viahttp://www.ruby-forum.com/.