Skip to content
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

3 errors using Suspenders #31

Closed
durrantm opened this issue Mar 25, 2011 · 3 comments
Closed

3 errors using Suspenders #31

durrantm opened this issue Mar 25, 2011 · 3 comments

Comments

@durrantm
Copy link

I am trying to use Suspenders.
However I am getting some errors.
I am getting them both locally on my own box and remotely at site5 ISP so there's probably common themes.
I am on Ubuntu 10.04.

Specifically:

  1. The mysql (which I use extensively) prompts for password always fail. I think in both cases the root account can't login so how to I specify a different (i.e.myself) user for the mysql piece, i.e. is there a parameter or something I should edit?

  2. generator_clearance & generator_clearance _features. Not sure if related to above but in both places I get:
    create lib/tasks/cucumber.rake
    gsub config/database.yml
    gsub config/database.yml
    force config/database.yml
    generate clearance
    Could not find generator clearance.
    generate clearance_features
    Could not find generator clearance_features.
    create public/stylesheets/sass/screen.scss

  3. Then I get:
    create features/step_definitions/factory_girl_steps.rb
    insert features/support/env.rb
    /home/rormdcom/ruby/gems/gems/suspenders-0.2.2/template/suspenders.rb:22:in `replace_in_file': /require .capybara_javascript_emulation./ not found in features/support/env.rb (RuntimeError)

Thanks, Michael.

@croaky
Copy link
Contributor

croaky commented Apr 25, 2011

Hi Michael,

Number 2 is definitely fixed in 0.2.3 of Suspenders. I was unable to re-create number 3, either.

I am seeing MySQL errors:

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
  Let's use MySQL
       force    config/database.yml
        rake    db:create
(in /Users/lawless/dev/rackhabit)
rake aborted!
uninitialized constant Mysql::Error

And:

generate    clearance:install
/Users/lawless/.rvm/gems/ruby-1.9.2-p136/gems/activerecord-3.0.7/lib/active_record/connection_adapters/mysql_adapter.rb:30:in `mysql_connection': undefined method `init' for Mysql:Class (NoMethodError)

MySQL is running on my machine. Is that what you're seeing, too?

@croaky
Copy link
Contributor

croaky commented Apr 25, 2011

I confirmed that number 3 was fixed in 0.2.3 as well by this patch:

#30

@hgmnz
Copy link

hgmnz commented Oct 14, 2011

  1. We are using Postgres now by default, with the pg gem, so this is not an issue any more.
  2. Was fixed in v0.2.3
  3. Not sure, but looks like an issue with some of the templates that suspenders pulls in.

@durrantm, it's been a while so I'm going to close this issue, but if it's still a problem I'd like to hear it!

@hgmnz hgmnz closed this as completed Oct 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants