railsapps / rails-signup-download Goto Github PK
View Code? Open in Web Editor NEWRails 5.0 starter app allows a visitor to sign up for an account and download a PDF file.
Rails 5.0 starter app allows a visitor to sign up for an account and download a PDF file.
I'm getting an error after I install signup-download as you are instructed in the tutorial. Here is the error:
undefined method
async' for # The issues is in app/models/users.rb on line 15 that reads:
MailingListSignupJob.perform_later(self)`
The tutorial says
After submitting the form, you’ll see an acknowledgment message and a button which allows you to download a PDF file.
But, instead I'm getting this error.
I hope I am not jumping the gun as I had Ruby 2.2.2 and Rails 4.2.1, plus rbenv already installed, but otherwise I am following the instructions. When I run the apps composer, I get errors. I was quite a ways into the stripe-membership tutorial, when I experienced problems and decided to start over. This time I watched the complete composer installation process and saw the errors.
init applying migrations and seeding the database
run bundle exec rake db:migrate from "."
rake aborted!
Psych::SyntaxError: (<unknown>): did not find URI escaped octet while parsing a tag at line 18 column 28
/home/ron/projects/rails-stripe-membership-saas/config/environments/development.rb:33:in `block in <top (required)>'
/home/ron/projects/rails-stripe-membership-saas/config/environments/development.rb:1:in `<top (required)>'
/home/ron/projects/rails-stripe-membership-saas/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
run bundle exec rake db:seed from "."
rake aborted!
Psych::SyntaxError: (<unknown>): did not find URI escaped octet while parsing a tag at line 18 column 28
/home/ron/projects/rails-stripe-membership-saas/config/environments/development.rb:33:in `block in <top (required)>'
/home/ron/projects/rails-stripe-membership-saas/config/environments/development.rb:1:in `<top (required)>'
/home/ron/projects/rails-stripe-membership-saas/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:abort_if_pending_migrations => environment
(See full trace by running task with --trace)
run git add -A from "."
run git commit -qm "rails_apps_composer: set up database" from "."
generate layout:devise bootstrap3 -f
/home/ron/.rbenv/versions/2.2.2/lib/ruby/2.2.0/psych.rb:370:in `parse': (<unknown>): did not find URI escaped octet while parsing a tag at line 18 column 28 (Psych::SyntaxError)
Just a recommendation --
the tabindex on the signup process(including to buy your tutorial) takes a user through a fun maze. Would recommend configuring.
Gibbon 2.0.0 was released July 29, 2015.
When you run bundle install
or bundle update
the newest Gibbon 2.0 gem will be installed and the application will error with
NameError: uninitialized constant Gibbon::API
Either change the Gemfile and specify
gem 'gibbon', '~>1.2.0'
or update the code that uses Gibbon.
See amro/gibbon#131
Thanks for the great resource.
When logging in as admin user, and clicking on the link to 'user count' which should take me to the user list. I get an error from:
indexapp/controllers/users_controller.rb
on line 7:
authorize User
undefined method `authorize' for #UsersController:0x007faa2ad3bae0
Any ideas? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.