README.md in magicka-0.5.6 vs README.md in magicka-0.6.0
- old
+ new
@@ -12,11 +12,11 @@
Magica helps creating html templates for forms and display data using js applications
such as AngulaJS
Yard Documentation
-------------------
-[https://www.rubydoc.info/gems/magicka/0.5.6](https://www.rubydoc.info/gems/magicka/0.5.6)
+[https://www.rubydoc.info/gems/magicka/0.6.0](https://www.rubydoc.info/gems/magicka/0.6.0)
Installation
---------------
- Install it
@@ -64,10 +64,14 @@
<%= form.input(:first_name) %>
<%= form.input(:last_name) %>
<%= form.input(:age) %>
<%= form.select(:gender, options: %w[MALE FEMALE] %>
-<%= form.button(ng_click: 'controller.save', text: 'Save') %>
+
+<%= form.only(:form) do %>
+ <!-- this block only appears in a form -->
+ <%= form.button(ng_click: 'controller.save', text: 'Save') %>
+<% end %>
```
## Configuring
In order to use magicka, the helper has to added to the controllers and any custom
element needs to added