-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't create custom components #43
Comments
You need to require the |
when i rewrite <% ArbreComponents::Panel %>
<%= Arbre::Context.new { panel 'welcome' } %> render works fine. |
i added line |
But I agree with you, it should be handled in a nicer way. |
i've created simple rails project
put
gem 'arbre'
into Gemfilecreate file
app/lib/arbre_components/panel.rb
:generate controller with
rails g Welcome index
and set it to rootand change text in
app/views/welcome/index.html.erb
:on page render i get an error:
what have i done wrong?)
The text was updated successfully, but these errors were encountered: