Peter Jagielski
2006-Apr-19 19:09 UTC
[Rails] select_tag and :include_blank => true not working
Guys, I''m using select_tag to display a non-model dropdown, which works fine. However, I''ve tried every which way to use the :include_blank => true option, but it simply won''t display a blank value. Using :include_blank => true with select on model fields works fine. Can someone please show me a working example? -- Posted via http://www.ruby-forum.com/.
Emin Hasanov
2006-Apr-19 20:46 UTC
[Rails] select_tag and :include_blank => true not working
well, there is no such an attribute for select_tag you can simply add blank row to the list of values that you produce On 4/20/06, Peter Jagielski <pjagielski@gmail.com> wrote:> > Guys, > > I''m using select_tag to display a non-model dropdown, which works fine. > However, I''ve tried every which way to use the :include_blank => true > option, but it simply won''t display a blank value. Using :include_blank > => true with select on model fields works fine. > > Can someone please show me a working example? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060419/03f4a949/attachment.html