# Markaby syntax question

**URL:** <https://www.ruby-forum.com/t/markaby-syntax-question/111298>\
**Category:** Rails\
**Created:** [August 5, 2007, 10:17am UTC](https://www.ruby-forum.com/t/markaby-syntax-question/111298 "2007-08-05T10:17:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![starfry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@starfry](https://www.ruby-forum.com/u/starfry)\
**Post date:** [August 5, 2007, 10:17am UTC](https://www.ruby-forum.com/t/markaby-syntax-question/111298/1 "2007-08-05T10:17:37Z")

</div>

Hi,

I am just getting into Rails and I thought I’d try Markaby too.

I have a mab file with the following in it:

form\_for :user do |form|

```
  p do
    label "First Name:", :for => "first_name"
    form.text_field :first_name, :size => 40
  end

```

(… cut similar)

```
 submit_tag "Add User", :class => "submit"

end

```

This renders the label but does not render the text field. If I  
comment out the label line, it renders the text field. Why can’t I get  
both to work, what am I doing wrong?

Thanks!
