Displaying 8 results from an estimated 8 matches for "user_first_name".
2005 Dec 23
1
Overloading error_message_on method in ActiveRecordHelper
...or_message_on(''user'', ''last_name'', :span => true)
This results in my application coming tumbling down with this error:
---
Showing app/views/user/_form.rhtml where line #3 raised:
stack level too deep
Extracted source (around line #3):
1: <div class="user_first_name">
2: <p><label for="user_first_name">Fornavn</label><br />
3: <%= text_field(''user'', ''first_name'', ''size'' => 25) %>
4: <%= error_message_on(''user'', ''first_name'...
2006 Apr 15
0
Ticket #4140? observe_field issue.
...w Form.Element.EventObserver(''user_email'', function(element, value)
{new Ajax.Request(''/account/validate_user_email/0'',
{asynchronous:true, evalScripts:true, parameters:''user_email='' +
value})})
//]]>
</script>
and
<input id="user_first_name" name="user[first_name]" size="30"
type="text" value="" />
<script type="text/javascript">
//<![CDATA[
new Form.Element.EventObserver(''user_first_name'', function(element,
value) {new Ajax.Request(''/account...
2005 Dec 27
0
Re: RESOLVED: Overloading error_message_on method in ActiveRecordHelper
..., :span => true)
> >
> > This results in my application coming tumbling down with this error:
> > ---
> > Showing app/views/user/_form.rhtml where line #3 raised:
> > stack level too deep
> > Extracted source (around line #3):
> > 1: <div class="user_first_name">
> > 2: <p><label for="user_first_name">Fornavn</label><br />
> > 3: <%= text_field(''user'', ''first_name'', ''size'' => 25) %>
> > 4: <%= error_message_on(''user'...
2006 Aug 02
1
Object is populated but attributes are unavailable
...end
----------------------------------------------
...is returning the blank org_name below?
Am I accessing the object''s attribute wrong?
----------------------------------------------
Org: #<Organization:0x39c97d0 @attributes={"user_last_name"=>"James",
"user_first_name"=>"Kevin", "id"=>"1", "org_name"=>"James Photographic
Illustration", "user_email_address"=>"xxx@fakename.com",
"user_password"=>"password", "user_id"=>"kevin"}>...
2007 Jan 26
0
Problems with assert_select in integration tests
...07b6f"]},
@stdinput=#<StringIO:0x24771e4>, @params={}, @multipart=false>, @body="
[ header of page cut .... ] <div id=\"main-double\">\n\t\t\t\n\n<form
action=\"/account/new_account_step_two\" method=\"post\"><p><label
for=\"user_first_name\">First Name:</label><br/>\n\t<input
id=\"first_name\" name=\"first_name\" type=\"text\" /></p>\n<p><label
for=\"user_last_name\">Last Name:</label><br/>\n\t<input
id=\"last_name\" name=\&qu...
2006 Aug 03
5
Rails - forms
Currently I have a registration form that is built like this:
<label for="First name">First name</label>
<%= text_field "user", "first_name" %><br>
<label for="Last name">Last name</label>
<%= text_field "user", "last_name" %><br>
<label for="Email">Email</label>
2009 Mar 26
0
assert2-0.4.6 provides assert_xhtml, an alternative to assert_select
...n''t tell why. To see each
context the assertion considers, add :verbose! => true to the lowest
element you know works, and run the tests:
assert_xhtml SAMPLE_FORM do
fieldset do
li :verbose! => true do
label ''First name'', :for => :user_first_name
end
end
end
The verbose option works as "spew", not as a diagnostic, and it reports
each considered element''s contents.
Because XPath evaluates the <label>, in our example, before the <li>, you
might need to comment the <label> out to see...
2009 Apr 02
8
Problem with Custom matcher and Blocks
Hi,
I''m trying to write my first custom matcher.
Here''s a bit of my example group.
describe "/contact/index" do
include FormMatchers
before(:each) do
render ''contact/index''
end
it "should show the contact form" do
response.should have_a_contact_form
end
describe "the contact form" do
context