Not signed in (Sign In)

Powered by Vanilla 1.1.8.

Welcome Guest!
Want to take part in these discussions? If you have an account, please sign in. If you don't have an account, register now.
  1.  #1

    The rails plugin fails with the following:

    Error:
    wrong number of arguments (5 for 4)

    Code:
    Extracted source (around line #9):

    6: <% uni_form_for @entity do |f| %>
    7: <p>
    8:
    9: <%= f.text_field :name, :required => true, :label => "Entity name" %>
    10:
    11: </p>
    12: <p>

  2.  #2

    Turns out in on 2 july 08, this commit
    http://github.com/rails/rails/commit/7098143f07bd03223bbbeea8a9c23506a7b5dffc#diff-1
    removed the unused 'nil' parameter.

    I edited uni_form.rb, on line 37, I removed the 'nil' parameter and this got it working for me (well the form renders now, but not the stylesheet).

    ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).to_label_tag2(label, options)

  3.  #3

    Now that the problem has been resolved, the form will render... below is the "view source" code. The issue is that no colours or formatting are being applied... Can anyone please explain why?

    <!-- for uniform-->
    <script src="/javascripts/uni-form.prototype.js?1242860762" type="text/javascript"></script>
    <link href="/stylesheets/uni-form.css?1242860762" media="all" rel="stylesheet" type="text/css" />

    <form action="/entities" class="uniForm" id="new_entity" method="post"><div style="margin:0;padding:0"><input name="authenticity_token" type="hidden" value="y0ijnaIgwTJN0EzKtF1hhkpY40UB0rMoybfFX+Z6CXU=" /></div>

    <fieldset class="inlineLabels"><legend>New Entity</legend>
    <p>

    <div class="ctrlHolder"><label for="entity_name"><em>*</em> Entity name</label><input class="textInput" id="entity_name" name="entity[name]" size="30" type="text" /></div>
    </p>

    <p>
    <div class="ctrlHolder"><label for="entity_phone">Phone</label><input class="textInput" id="entity_phone" name="entity[phone]" size="30" type="text" /></div>
    </p>
    <p>
    <div class="ctrlHolder"><label for="entity_fax">Fax</label><input class="textInput" id="entity_fax" name="entity[fax]" size="30" type="text" /></div>

    </p>
    <p>
    <div class="ctrlHolder"><label for="entity_website">Website</label><input class="textInput" id="entity_website" name="entity[website]" size="30" type="text" /></div>
    </p>
    <p>
    <input name="commit" type="submit" value="Save" />
    </p>
    </fieldset>
    </form>