File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# OpenComponents::Rails
2
2
[ ![ Build Status] ( https://travis-ci.org/opentable/opencomponents-rails.svg?branch=master )] [ 1 ]
3
+ [ ![ Gem Version] ( https://badge.fury.io/rb/opencomponents-rails.svg )] [ 2 ]
3
4
4
5
[ 1 ] :https://travis-ci.org/opentable/opencomponents-rails
6
+ [ 2 ] :http://badge.fury.io/rb/opencomponents-rails
5
7
6
8
OpenComponents for Rails. This gem provides view helper methods for component
7
9
rendering on both server- and client-side.
@@ -47,7 +49,7 @@ pipeline, add the library to your javascript manifest:
47
49
48
50
Once that's done, you can use the ` oc_component_tag ` method in your views. You can either
49
51
pass the method a fully formed ` href ` attribute or use the same options as ` OpenComponents `
50
- [ Renderer] [ 2 ] .
52
+ [ Renderer] [ 3 ] .
51
53
``` erb
52
54
<%= oc_component_tag('my-sweet-component', href: 'http://localhost:3030/my-sweet-component/1.0.1?name=Zan') %>
53
55
@@ -63,9 +65,9 @@ In your view, simply call `render_component`:
63
65
<%= render_component('my-sweet-component', params: {name: 'Zan'}, version: '1.0.1') %>
64
66
```
65
67
66
- The method accepts the same options as the ` OpenComponents ` [ Renderer] [ 2 ] .
68
+ The method accepts the same options as the ` OpenComponents ` [ Renderer] [ 3 ] .
67
69
68
- [ 2 ] :http://www.rubydoc.info/gems/opencomponents/OpenComponents/Renderer
70
+ [ 3 ] :http://www.rubydoc.info/gems/opencomponents/OpenComponents/Renderer
69
71
70
72
## Contributing
71
73
Would be pretty cool of you. Open an Issue or PR if you find bugs or have ideas for improvements.
You can’t perform that action at this time.
0 commit comments