You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rails generate template test -t=1 2
rails generate template test -t 1 2
rails generate template test -t 1,2
rails generate template test -t=1,2
rails generate template test -t=[1,2]
rails generate template test -t [1,2]
but the generator is not working correctly. It seems that the input doesn't return an array, because the following private method is not working:
def should_be_template_rendered(param)
options.templates.include? param
end
Where param is simply a number. The result is that none of the templates are rendered at all. I have checked the Thor documentation, but was not able to find an example on how the array is passed as argument.
I am using Ruby 2.0, Rails 4.0 and Thor (0.18.1).
The text was updated successfully, but these errors were encountered:
I'm creating the following ruby class generator:
In the rails console I tried:
but the generator is not working correctly. It seems that the input doesn't return an array, because the following private method is not working:
Where param is simply a number. The result is that none of the templates are rendered at all. I have checked the Thor documentation, but was not able to find an example on how the array is passed as argument.
I am using
Ruby 2.0
,Rails 4.0
andThor (0.18.1)
.The text was updated successfully, but these errors were encountered: