last day (15 days later) » 

6:09 PM
0
Q: Rake secret command not working

gwhoWhen I run rake secret in my terminal, instead of getting a new key, i get NoMethodError: undefined method 'reject' for #<String: blah blah blah> c:/Sites/appname/config/application.rb:10:in '<module:appname>' c:/Sites/appname/config/application.rb:9:in '<top (required)>' c:/Sites/appname/Rakef...

 
what is the project Rails -v?
 
I don't know what that means or how to do that. I didn't type rake reject, i typed rake secrets
 
@gwho, check your file application.rb:10
 
It says ` class Application < Rails::Application` just like my other project.
@brunozrk I'm not sure what you mean. what command should I run? When I run rails -v, it's Rails 4.1.1
 
Do you have file bin/rake i your app?
 
6:09 PM
yes, the contents are #!/usr/bin/env ruby.exe require_relative '../config/boot' require 'rake' Rake.application.run
 
No,no. I say in your project. <you_project_name>/bin/rake
 
project_name/bin/rake
i have one
the rake is a file
hello =]
no rake commands are working actually
 
Error is the same?
 
yes, exactly the same
except the string hash
 
Can you post your applicaiton.rb?
 
6:15 PM
require File.expand_path('../boot', __FILE__)

require 'rails/all'

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Ghettolifehack
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.

# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
hi
=]
 
Rakefile?
 
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)

Rails.application.load_tasks
Could it have soemthing to do with precompiling
rake commands were working a while ago. i'm not sure what i changed. I can't spot it in the gitk records
 
So what if you search your code for blah blah blah?
 
it's not actually blah balh balh
it's 9 character hash i think
 
Okay.
 
6:19 PM
i get no results
not found
 
rsrs
 
rsrs?
 
6:30 PM
Well thanks for trying guys
i'll check out figaro, and config settings
 
 
1 hour later…
7:51 PM
(y)
 

last day (15 days later) »