#292 open
Clemens Kofler

ExtensibleFormBuilder // Rails inconsistency

Reported by Clemens Kofler | April 29th, 2009 @ 12:10 PM

ExtensibleFormBuilder behaves differently from Rails' default form builder regarding parameters for some methods, namely all methods that have two options hashes instead of just one (one for the "general" options, one for html options). These methods, as far as I see it, are:

  • collection_select
  • select
  • time_zone_select

Or in short: The methods added in FormOptionsHelper.

Example:


collection_select :category_id, Category.all, :id, :name, { :include_blank => true }, :class => "some classes"

For the options that ExtensibleFormBuilder adds (e.g. :label), it would make sense for them to be in the first hash:


collection_select :category_id, Category.all, :id, :name, { :include_blank => true, :label => "Category" }, :class => "some classes"

However, this doesn't work since ExtensibleFormBuilder only extracts the last hash. This works:


collection_select :category_id, Category.all, :id, :name, { :include_blank => true }, :class => "some classes", :label => "Category"

Side note: I think this should be fixed in Rails anyway, but in the mean time, we should probably fix it in ExtensibleFormBuilder anyway.

Comments and changes to this ticket

  • Marko Seppä

    Marko Seppä June 19th, 2009 @ 10:24 AM

    • State changed from “new” to “open”

    Added to product backlog.

  • Joshua Ulm

    Joshua Ulm September 3rd, 2022 @ 09:36 AM

    In the age of web development, there are a plethora of frameworks to choose from. One of the more popular frameworks is ExtensibleFormBuilder (XFB). XFB is a framework that lets you easily create custom forms so must Buy Online Natural Supplements for pets. XFB is very easy to use. You simply create a form skeleton and then add the fields and components you need. You can also create custom themes and layouts for your forms.

  • August Foster

    August Foster October 17th, 2022 @ 01:50 PM

    Thanks for the work and the coding ideas are very creative. I’m sure a number of people are getting help with the extension builder and fixing the bugs. Thumbs up with nursing dissertation help recommending sharing please continue to bring always trusted help.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>

Pages