Giter VIP home page Giter VIP logo

feedback's Issues

How to Install

Hi, I'm a noob running Ruby 2.3 on Rails 4 and Ubuntu 14. When I follow the install directions from the readme I get the following error. What am I doing wrong?

$ rails generate feedback_form --skip-jquery
[WARNING] Could not load generator "generators/feedback_form_generator". Error: uninitialized constant Rails::Generator.
/home/ubuntu/workspace/lib/generators/lib/insert_routes.rb:3:in `<top (required)>'
/home/ubuntu/workspace/lib/generators/feedback_form_generator.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/generators.rb:332:in `block (2 levels) in lookup'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/generators.rb:328:in `each'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/generators.rb:328:in `block in lookup'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/generators.rb:327:in `each'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/generators.rb:327:in `lookup'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/generators.rb:138:in `find_by_namespace'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/generators.rb:155:in `invoke'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/commands/generate.rb:13:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:123:in `require_command!'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:50:in `generate'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Could not find generator 'feedback_form'. Maybe you meant 'generator', 'erb:scaffold' or 'resource_route'
Run `rails generate --help` for more options.

What needs to be changed for Rails 4?

The feedback modal renders correctly if I manually make do: input type="text" name="email" /> but <%= f.text_field 'email' %> raises the error below. Is this a Rails 4 limitation? I think I found the documentation for the FormBuilder.text_field method, but maybe I'm not reading it right and something needs to change...

ActionView::Template::Error (undefined method '[]' for nil:NilClass):

17:     <%= f.label 'email' %>
18:     <%= f.text_field 'email' %>
19:     <!--<input type="text" name="email" />-->

app/views/feedbacks/new.html.erb:18:in 'block in _app_views_feedbacks_new_html_erb___3943314167409289596_2190560080'
app/views/feedbacks/new.html.erb:5:in `_app_views_feedbacks_new_html_erb___3943314167409289596_2190560080'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.