Skip to content

Commit

Permalink
ui/forms - fixups and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Nov 7, 2017
1 parent ba62ec4 commit dfb7407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ For simplicity, I'm omitting any such afixes and using a `foo_` prefix when comp
* calls `set_form_vars`
* loads data from db
* populates `@edit`
* render the form (`app/views/foo/
* renders the form (`app/views/foo/_form.html.haml`)

* change a field - `form_field_changed`
* calls `get_form_vars`
Expand All @@ -65,7 +65,7 @@ For simplicity, I'm omitting any such afixes and using a `foo_` prefix when comp

#### code

`app/controllers/foo_controller.rb`
##### app/controllers/foo_controller.rb

```ruby
def foo_new
Expand Down Expand Up @@ -178,7 +178,7 @@ end
```


`app/views/foo/_form.html.haml`
##### app/views/foo/_form.html.haml

```haml
- url = url_for_only_path(:action => "form_field_changed", :id => @record.id || "new")
Expand Down Expand Up @@ -216,7 +216,7 @@ end
```


`app/views/foo/_dynamic.html.haml`
##### app/views/foo/_dynamic.html.haml

```haml
= @edit[:current][:choice]
Expand Down

0 comments on commit dfb7407

Please sign in to comment.