Hi Ingacio!
Thanks!
The rails g hobo:user_model worked correctly, but when I used
hobo generate migration
I got the following error:
from
/home/donz/.rvm/gems/ruby-2.5.1/bundler/gems/hobo-c5cc79192865/hobo_fields/lib/generators/hobo/migration/migration_generator.rb:47:in
`migrate'
/home/donz/.rvm/gems/ruby-2.5.1/bundler/gems/hobo-c5cc79192865/hobo_fields/lib/generators/hobo/migration/migration_generator.rb:94:in
`migrations_pending?': undefined method `migrations' for
ActiveRecord::Migrator:Class (NoMethodError)
This was on a brand new rails api app created with
rails new hoboNtrak --api
added the gem from github in Gemfile, then
bundle install => ran successfully
then
rails g hobo:user_model => ran successfully
At this point I have a copy of user.rb that looks pretty much like the
ones in the original apps, but with no appropriate db tables. This is
when I ran
hobo generate migration => got the above error traceback.
also tried
rails generate hobo:migration => got the same error.
Thanks again,
Don
On 06/20/2018 02:21 PM, Ignacio Huerta wrote:
Hi Donald,
You can try this branch in your Gemfile. We took some steps to replace
Erubis. I also fixed a couple of small bugs today so at least "rails g
hobo:user_model" worked in a vanilla Rails 5.2 app:
|gem 'hobo', git: 'https://github.com/Hobo/hobo.git', :branch =>
'rails5_new2'|
On 18 June 2018 at 22:31, Ed Gomolka <[email protected]
<mailto:[email protected]>> wrote:
Erubis is the ERB template engine that Rails 4 used. Rails 5
replaces Erubis with Erubi. I assume that you are using ERB files
to reference your Angular code, in which case I don't see how you
can avoid it.
On Saturday, June 16, 2018 at 12:18:19 PM UTC-6, donz wrote:
Hi again!
It did not take long :'(.
Gemfile:
gem 'hobo'
bundle install
# rails g hobo:user_model
...
.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
`require': cannot load such file -- erubis (LoadError)
I looked up erubis and it seems to be something to generate
html, which
I don't need. Any workarounds?
Don
--
You received this message because you are subscribed to the Google
Groups "Hobo Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/hobousers
<https://groups.google.com/group/hobousers>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
+45 42 997 196
--
You received this message because you are subscribed to the Google
Groups "Hobo Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.