Re: [Rails] Rake aborted!

2019-03-10 Thread brainiacsys5
I installed NodeJs and it worked like a charm. Thank you Colin, Walter and everyone. The only issue I have now appears to be Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'. It never ends. LOL n Sunday, March 10, 2019 at 5:57:48 PM UTC-4, Colin Law wrote: > > O

Re: [Rails] Rake aborted!

2019-03-10 Thread Colin Law
On Sun, 10 Mar 2019 at 20:30, wrote: > > Hi Colin, > > I am not sure but I think the issue is that it is running on a desktop right > now rather than on a webserver. Shouldn't make any difference, provided you have run bundle install on the desktop. Nowadays I do use nodejs but I used to use th

Re: [Rails] Rake aborted!

2019-03-10 Thread brainiacsys5
Hi Colin, I am not sure but I think the issue is that it is running on a desktop right now rather than on a webserver. Thanks, On Sunday, March 10, 2019 at 4:04:21 PM UTC-4, Colin Law wrote: > > On Sun, 10 Mar 2019 at 17:35, > wrote: > > > > Thank you Walter and Hasan. The gem is actually in

Re: [Rails] Rake aborted!

2019-03-10 Thread Colin Law
On Sun, 10 Mar 2019 at 17:35, wrote: > > Thank you Walter and Hasan. The gem is actually in the gem file but this > occurred in development on my desktop so my guess would be I would need to > install it there. If therubyracer is in your Gemfile then that should be enough. Colin > > On Sunday

Re: [Rails] Rake aborted!

2019-03-10 Thread brainiacsys5
Thank you Walter and Hasan. The gem is actually in the gem file but this occurred in development on my desktop so my guess would be I would need to install it there. On Sunday, March 10, 2019 at 1:27:30 PM UTC-4, Walter Lee Davis wrote: > > Correct. Your server does not have a JavaScript interp

Re: [Rails] Rake aborted!

2019-03-10 Thread Walter Lee Davis
Correct. Your server does not have a JavaScript interpreter available at the command line. These days, I just install whatever version of NodeJS is in the package manager for that server. If you want to avoid any server dependencies, you can just add therubyracer to your Gemfile and bundle on th

Re: [Rails] Rake aborted!

2019-03-10 Thread brainiacsys5
Yes I did. Where I was thrown off is in trying to understand what the literal issue is so I could resolve it as my understanding was if there were any outstanding issues with the app it wouldnt bundle I assumed the issue to be OS related. I On Sunday, March 10, 2019 at 1:10:22 PM UTC-4, Hassan

Re: [Rails] Rake aborted!

2019-03-10 Thread Hassan Schroeder
On Sun, Mar 10, 2019 at 9:45 AM wrote: > Now that the bundle install has run successfully I have run into the > following error while running rake db:create. Does anyone have any ideas how > to resolve the issue? > rake aborted! > ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime

[Rails] Rake aborted!

2019-03-10 Thread brainiacsys5
Hi Everyone, Now that the bundle install has run successfully I have run into the following error while running rake db:create. Does anyone have any ideas how to resolve the issue? Thanks, rake aborted! ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/r

Re: [Rails] rake db:schema:dump rake aborted!

2018-05-01 Thread Abdelmajid Lotfi
I got this : bundle Using rake 12.3.1 Using concurrent-ruby 1.0.5 Using i18n 1.0.1 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using activesupport 5.1.6 Using builder 3.2.3 Using erubi 1.7.1 Using mini_portile2 2.3.0 Using nokogiri 1.8.2 (x64-mingw32) Using rails-dom-testing

Re: [Rails] rake db:schema:dump rake aborted!

2018-05-01 Thread Walter Lee Davis
What happens if you run the `bundle` command in your project? Is the mysql2 gem installed? Walter > On May 1, 2018, at 9:22 AM, Majid Lotfi wrote: > > Hi, > I am following lynda training in my windows 7, I don't know what cause this > error : > > rake db:schema:dump > > rake aborted! > Loa

[Rails] rake db:schema:dump rake aborted!

2018-05-01 Thread Majid Lotfi
Hi, I am following lynda training in my windows 7, I don't know what cause this error : rake db:schema:dump rake aborted! LoadError: cannot load such file -- mysql2/2.4/mysql2 C:/majid/projTutorials/Lynda/rails/Sites/simple_cms/config/application.rb:7:in `' C:/majid/projTutorials/Lynda/rails/S

Re: [Rails] rake db:create db:schema:load creates tables without id column and migration shows id="false"

2017-03-27 Thread Colin Law
On 27 March 2017 at 05:02, fugee ohu wrote: > rake db:create db:schema:load creates tables without id column and migration > shows id="false" as it runs > of course, this isn't what i want; how do i run the same command with a > switch or argument to use id="true" instead and why this default beha

Re: [Rails] rake db:create db:schema:load creates tables without id column

2017-03-27 Thread Colin Law
On 27 March 2017 at 04:59, fugee ohu wrote: > rake db:create db:schema:load creates tables without id column and migration > shows id="false" as it runs > of course, this isn't what i want; how do i run the What is in the schema definition file? That is db/schema.rb. Colin -- You received this

[Rails] rake db:create db:schema:load creates tables without id column and migration shows id="false"

2017-03-26 Thread fugee ohu
rake db:create db:schema:load creates tables without id column and migration shows id="false" as it runs of course, this isn't what i want; how do i run the same command with a switch or argument to use id="true" instead and why this default behavior? -- You received this message because you ar

[Rails] rake db:create db:schema:load creates tables without id column

2017-03-26 Thread fugee ohu
rake db:create db:schema:load creates tables without id column and migration shows id="false" as it runs of course, this isn't what i want; how do i run the -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group a

Re: [Rails] rake aborted! NoMethodError: undefined method `web_console'

2016-07-24 Thread Colin Law
On 24 July 2016 at 16:33, Dd Cd wrote: > undefined method `web_console' Have you run bundle install? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email

[Rails] rake aborted! NoMethodError: undefined method `web_console'

2016-07-24 Thread Dd Cd
Hey Everyone, I'm having some real problems here. I keep getting this error: rake aborted! NoMethodError: undefined method `web_console' When Running this command: bundle exec rake secret I'm trying to setup my sample ruby app on my production server. My sample app is from the Ruby on Rails Tu

[Rails] Rake Aborted! “Don't know how to build task 'dropbox:authorize'”

2015-07-02 Thread Tsheetiz Tamang
Working with rails and my application, and bumped into a problem. I've come to the step where I need to install dropbox, and incorporate it to my code. The first step was to install the dropbox gem, and that happened with ease. Then I had to complete the migration, which was also a success. Th

Re: [Rails] Rake commands return blank console`

2015-05-22 Thread Colin Law
On 22 May 2015 at 09:56, Naveen Goud wrote: > i want to learn Ruby can you please help me Start a new thread with an appropriate subject, your request is nothing to do with subject of this thread, which is "Rake commands return blank console" Colin -- You received this message because you are

Re: [Rails] Rake commands return blank console`

2015-05-22 Thread Naveen Goud
i want to learn Ruby can you please help me On Fri, May 22, 2015 at 2:24 PM, Colin Law wrote: > On 22 May 2015 at 09:47, Naveen Goud wrote: > > can you please call me back > > What? Who? > > Colin > > > > > On Fri, May 22, 2015 at 1:20 PM, Colin Law wrote: > >> > >> On 22 May 2015 at 06:56, B

Re: [Rails] Rake commands return blank console`

2015-05-22 Thread Colin Law
On 22 May 2015 at 09:47, Naveen Goud wrote: > can you please call me back What? Who? Colin > > On Fri, May 22, 2015 at 1:20 PM, Colin Law wrote: >> >> On 22 May 2015 at 06:56, Binu A. wrote: >> > Rake test >> > Rake db:migrate >> >> Those won't work as it should not be a capital R >> >> > bu

Re: [Rails] Rake commands return blank console`

2015-05-22 Thread Naveen Goud
can you please call me back On Fri, May 22, 2015 at 1:20 PM, Colin Law wrote: > On 22 May 2015 at 06:56, Binu A. wrote: > > Rake test > > Rake db:migrate > > Those won't work as it should not be a capital R > > > bundle exec rake test > > That should work. Can you copy/paste the full output fr

Re: [Rails] Rake commands return blank console`

2015-05-22 Thread Colin Law
On 22 May 2015 at 06:56, Binu A. wrote: > Rake test > Rake db:migrate Those won't work as it should not be a capital R > bundle exec rake test That should work. Can you copy/paste the full output from the console, including the command please. Also the output from bundle -v and which bundle

[Rails] Rake commands return blank console`

2015-05-21 Thread Binu A.
Rake test Rake db:migrate bundle exec rake test bundle exec db:migrate All the return no result no errors , just a blank console . This is happening only in my current project . It was working earlier in the same project . In other projects all rake commands are working ! Please help ! --

[Rails] rake db:schema:dump vs. config.active_record.schema_format = :ruby

2015-01-23 Thread Jan Lühr
Hello folks, I've some issues with rake db:structure:dump and rails 4.2.0 If config.active_record.schema_format = :ruby, rake db:structure:dump will generate structure.sql nevertheless - tests will fail because of a missing schema.rb file (/home/jan/RubymineProjects/cdb3/db/schema.rb doesn't

Re: [Rails] rake db:create create also a phantom table

2014-12-18 Thread Vivek Sampara
Hi, This happens because of *Schema cache dump * . http://edgeguides.rubyonrails.org/4_0_release_notes.html#general. To avoid this you need to run rake db:schema:cache:clear Cheers Vivek On Thu, Dec 18, 2014 at 3:40 PM, apsr84 wrote: > > > Hello guys, > > today happened a strange thing, i have

[Rails] rake db:create create also a phantom table

2014-12-18 Thread apsr84
Hello guys, today happened a strange thing, i have a Rails 4 application which use a sql structure (use Postgres), no migrations at all; after some testing i dropped and recreated the db with rake db:drop and db:create, but i had an error loading the structure, on the last table i was working

Re: [Rails] Rake tasks

2014-11-24 Thread Jason Fleetwood-Boldt
Robert, I can't tell you all the ins and outs of your script but what you're seeing here is that rake is looking at the V thinking it is another rake task you want to run (that's why the first one succeeds and then gives you the error) You probably want something like V="true" or V=1 or somethi

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Robert Fitzpatrick wrote: Maybe I missed something earlier in the discussion, but can't you just edit it to: @verbose = true if arg == 'V' Yes, I guess so, and then uncomment all the places in the code where he has #puts if @verbose I'll give it a try, still trying to figure out how to

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Scott Ribe wrote: On Nov 19, 2014, at 11:12 AM, Robert Fitzpatrick wrote: OK, that's a relief that I can read the code, thanks for clarifying. To get verbosity, I'll need to do a lot of uncommenting and do line-by-line debuggging :-/ Jason mentioned a debugging tool for Rails 2.0 earlier, wh

Re: [Rails] Rake tasks

2014-11-19 Thread Scott Ribe
On Nov 19, 2014, at 11:12 AM, Robert Fitzpatrick wrote: > > OK, that's a relief that I can read the code, thanks for clarifying. To get > verbosity, I'll need to do a lot of uncommenting and do line-by-line > debuggging :-/ > > Jason mentioned a debugging tool for Rails 2.0 earlier, what about

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Scott Ribe wrote: On Nov 19, 2014, at 10:49 AM, Robert Fitzpatrick wrote: Then the code uses '#puts something if @verbose' throughout. Like I said, I'm new to ruby, but have used Perl and PHP and other languages before, I hope is what is throwing me off is the # are not comments? This almost

Re: [Rails] Rake tasks

2014-11-19 Thread Scott Ribe
On Nov 19, 2014, at 10:49 AM, Robert Fitzpatrick wrote: > > Then the code uses '#puts something if @verbose' throughout. Like I said, I'm > new to ruby, but have used Perl and PHP and other languages before, I hope is > what is throwing me off is the # are not comments? This almost looks like

Re: [Rails] Rake tasks

2014-11-19 Thread Robert Fitzpatrick
Jason Fleetwood-Boldt wrote: Without seeing the task I can't tell you the answer to that. And the fact that it runs on a cron schedule means that you probably have something like a worker in the background doing that. Normally you run rake some_task X="abc" Y="xyz" I see this piece of code

Re: [Rails] Rake tasks

2014-11-18 Thread Jason Fleetwood-Boldt
Without seeing the task I can't tell you the answer to that. And the fact that it runs on a cron schedule means that you probably have something like a worker in the background doing that. Normally you run rake some_task X="abc" Y="xyz" where X and Y are arguments being passed in. But note

Re: [Rails] Rake tasks

2014-11-18 Thread Robert Fitzpatrick
Jason Fleetwood-Boldt wrote: Finally, you probably almost certainly don't want to be running RAILS_ENV="production" if you are developing locally on your own machine. And learn to use a debugger-- I recommend byebug if you're using Ruby 2.0 or above, and put "byebug" at the top of your rake task.

Re: [Rails] Rake tasks

2014-11-18 Thread Jason Fleetwood-Boldt
Robert, 1) The same deprecation warnings probably happen when you just run "rails c" or "rails s", right? If so, those are just general deprecation warnings that are happening when you boot up the app. Today, you can ignore them (hence, warning). In the long run, you'll want to fix those as yo

Re: [Rails] Rake tasks

2014-11-18 Thread Michael Riley
Hello, What are the deprecated messages you are getting? Mike Riley On Tue, Nov 18, 2014 at 1:31 PM, Robert Fitzpatrick wrote: > I am new to ruby and maintaining an existing web application. I need to > change the FTP server in a task and trying to familiarize myself with rake > tasks. The tas

[Rails] Rake tasks

2014-11-18 Thread Robert Fitzpatrick
I am new to ruby and maintaining an existing web application. I need to change the FTP server in a task and trying to familiarize myself with rake tasks. The task is in lib/tasks/archives.rake under the namespace utils. I read over a rake tutorial and viewed rake options to try and show informa

[Rails] rake test:prepare fails in Rails 4.0.8

2014-07-27 Thread Special Agent Dale Cooper
I was testing my app (with rspec) when I noticed that *rake test:prepare* throws an odd *FATAL: database "postgres" does not exist *error. Stranger still, my tests run just fine regardless. However, whenever I use rake *test:prepare --trace *(after using *rake db:migrate*) I get this error an

Re: [Rails] rake asset:precompile for rails 2.3.18

2014-07-25 Thread Hassan Schroeder
On Thu, Jul 24, 2014 at 11:11 PM, Thilak G wrote: > i have deployed a rails application on heroku > ruby version 1.9.3-p547 > rails version 2.3.18 > > while i am using webrick server its working properly,but using unicorn > server its not working ,that means it didn't support javascript, css and

[Rails] rake asset:precompile for rails 2.3.18

2014-07-24 Thread Thilak G
hi everyone, i have deployed a rails application on heroku ruby version 1.9.3-p547 rails version 2.3.18 while i am using webrick server its working properly,but using unicorn server its not working ,that means it didn't support javascript, css and all,it shows error like this ActionControlle

[Rails] rake mutlipart issue in rails 3.0.3

2014-07-22 Thread chandra sekar
Hi Right now i'm using rails 3.0.3 and ruby 1.9.3. while running my application i got following error.please give any solution.how to solve this Completed 200 OK in 348ms (Views: 14.8ms | ActiveRecord: 9.5ms) Error during failsafe response: ActionView::Template::Error /home/amp/.rvm/gems/ruby-1.

Re: [Rails] Rake test fail assert_match

2014-06-19 Thread Jason Fleetwood-Boldt
Put a debugger in (use binding or debugger for Ruby < 1.9; use byebug for Ruby 2.0) before your test failure and execute those RegExp commands on the console while you have the values in memory. You probably have just a few characters off, or a whitespace character that is messing up the matc

[Rails] Rake test fail assert_match

2014-06-19 Thread Jaimin Pandya
I am reading " Agile Web Developement with rails". I am using Ruby 1.9.3 and Rails 3.2.16. When I run `rake test` command, i got following errors: 1) Failure: test_received(OrderNotifierTest) [/home/jaimin/rails3/work/depot/test/functional/order_notifier_test.rb:9]: Expected /1 x Programming Rub

Re: [Rails] rake aborated

2014-06-02 Thread Rob Biedenharn
On 2014-Jun-2, at 09:30 , Walter Lee Davis wrote: > This is normal. You need to run Rake from within the same folder as a > Rakefile, as the error indicates. > > Make sure that your PATH is set to include the folder where rake lives, so > that you can type the command from anywhere (not a ful

Re: [Rails] rake aborated

2014-06-02 Thread Walter Lee Davis
This is normal. You need to run Rake from within the same folder as a Rakefile, as the error indicates. Make sure that your PATH is set to include the folder where rake lives, so that you can type the command from anywhere (not a fully-qualified path to the executable as you seem to have done h

[Rails] rake aborated

2014-06-02 Thread Rachita Dangare
Hi I have installed gem install rake on my machine. but when I run command rake C:\Ruby193\lib\ruby\gems\1.9.1>rake it gives error message as rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) (See full trace by running task with --trace) kindly help m

Re: [Rails] '$ rake db:create' don't work!

2013-11-27 Thread James Turley
This seems to be a common issue (affects some Python users as well). The install of libmysqlclient seems not to be on your PATH. A stackoverflow question came up with this solution: sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib (ie, you symlink the file

Re: [Rails] '$ rake db:create' don't work!

2013-11-27 Thread James Turley
(SO link: http://stackoverflow.com/questions/4546698/library-not-loaded-libmysqlclient-16-dylib-error-when-trying-to-run-rails-serv ) On Wed, Nov 27, 2013 at 1:29 PM, James Turley < jamesturley1...@googlemail.com> wrote: > This seems to be a common issue (affects some Python users as well). The

[Rails] '$ rake db:create' don't work!

2013-11-26 Thread romenig damasio
Hey guys, I'm new to learning RoR and I try to do a database with mysql and I have a problem. First I create a a folder in my desktop and after with command in the terminal on Mac Os Mavericks I create a project: rails new vota_prato -d mysql after I will try to create a database with this comman

Re: [Rails] rake db:migrate debacle

2013-10-30 Thread Алексей Колосов
I think you need to run the "rake db:migrate" 2013/10/30 Hassan Schroeder > On Mon, Oct 28, 2013 at 9:44 PM, Will Amette > wrote: > > Hi there - I'm a ruby newbie and am stuck on the Getting Started with > Rails > > app. See output below. Problem arose when I ran the rake db:migrate > > comm

Re: [Rails] rake db:migrate debacle

2013-10-29 Thread Tamara Temple
On Oct 28, 2013, at 11:44 PM, Will Amette wrote: > Hi there - I'm a ruby newbie and am stuck on the Getting Started with Rails > app. See output below. Problem arose when I ran the rake db:migrate > command. I also tried the 'rake db:migrate RAILS_ENV=development' command > which may be ob

Re: [Rails] rake db:migrate debacle

2013-10-29 Thread Hassan Schroeder
On Mon, Oct 28, 2013 at 9:44 PM, Will Amette wrote: > Hi there - I'm a ruby newbie and am stuck on the Getting Started with Rails > app. See output below. Problem arose when I ran the rake db:migrate > command. I also tried the 'rake db:migrate RAILS_ENV=development' command > which may be obvi

[Rails] rake db:migrate debacle

2013-10-29 Thread Will Amette
Hi there - I'm a ruby newbie and am stuck on the Getting Started with Rails app. See output below. Problem arose when I ran the rake db:migrate command. I also tried the 'rake db:migrate RAILS_ENV=development' command which may be obvious. Any ideas on how to fix this? Many thanks!!

[Rails] rake db:create giving undefined method `[]' for nil:NilClass

2013-06-30 Thread Dipanjan Patranavis
My ruby version is 1.8.7 I have installed mysql-essential-5.0.90-win32 and using Fedena 2.3.5 List of all gems installed:* columnize (0.3.6) declarative_authorization (0.5.1) fattr (2.2.1) ffi (1.9.0) gem_plugin (0.2.3) highline (1.6.19) i18n (0.4.2) metaclass (0.0.1) mime-types (1.23) mocha (0.14

[Rails] Re: No rake db:test:* commands in my Rails rake. Where may I find all missing rake commands?

2013-05-26 Thread mike
ching optional > PATTERN) with descriptions) or "rake -D task" (Describe the tasks > (matching optional PATTERN) with descriptions). > > Is there one special place where ALL Rails rake commands are presented > with full explanation for them? Some Rake API? > > -- >

[Rails] No rake db:test:* commands in my Rails rake. Where may I find all missing rake commands?

2013-05-26 Thread Wins Lin
quot; in the output. It makes me think that there are dozens of rake commands that are not distributed when I do "rake -T" (Display the tasks (matching optional PATTERN) with descriptions) or "rake -D task" (Describe the tasks (matching optional PATTERN) with descriptions).

[Rails] rake assets:precompile issue with JS and stylesheets files with similar name

2013-05-23 Thread Farukh D.M
Hi, I've got following two files with same names under javascripts and stylesheets directories as: - app/assets/javascripts/test_vendor.js - app/assets/stylesheets/test_vendor.scss Essentially a JS and an stylesheet files with same name.

Re: [Rails] rake precompile:assets throwing error

2013-05-15 Thread Colin Law
On 14 May 2013 08:07, sith wrote: > While running rake precompile:assets i'm getting the following error > > This is the error message: > rake assets:precompile:all RAILS_ENV=production > rake aborted! > undefined local variable or method `establish_connection' for > ActiveRecord::Base:Class Do y

[Rails] rake precompile:assets throwing error

2013-05-14 Thread sith
While running rake precompile:assets i'm getting the following error This is the error message: rake assets:precompile:all RAILS_ENV=production rake aborted! undefined local variable or method `establish_connection' for ActiveRecord::Base:Class Please help -- You received this message because

Re: [Rails] rake aborted error.

2013-05-12 Thread tamouse mailing lists
On Sun, May 12, 2013 at 4:22 AM, Iago A. wrote: > Hy guys, how I fix this problem? What do you see when you follow the instructions on line 2: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. -- You received this message because y

[Rails] rake aborted error.

2013-05-12 Thread Iago A.
Hy guys, how I fix this problem? I saw others topics but not solved. Link to view errors: http://pastebin.com/pYCdgX4K When I submit on terminal: rake -T He return errors(in link) This error happens when I submit db:create in my app folder. -- Someone can help me? -- Posted via http://www.ruby

Re: [Rails] Rake db:migrate

2013-05-07 Thread Colin Law
On 7 May 2013 11:18, Lorenz Blackbird wrote: > Hello, > > I'm trying to use command rake db:migrate, but in MySQL I continuous get > an empty set and I do know why. > > #/db/seeds.rb > User.create(username: "lorenz", password: "mypass", admin: true) > > When I run: > rake db:seed RAILS_ENV=develop

[Rails] Rake db:migrate

2013-05-07 Thread Lorenz Blackbird
Hello, I'm trying to use command rake db:migrate, but in MySQL I continuous get an empty set and I do know why. #/db/seeds.rb User.create(username: "lorenz", password: "mypass", admin: true) When I run: rake db:seed RAILS_ENV=development --trace I received: ** Invoke db:seed (first_time) ** Exe

[Rails] Rake tasks db:test:prepare cannot be executed in the same task of db:reset or db:migrate

2013-02-27 Thread Rafael Sales
Hey all, I'm trying to create a task that prepare the environment to start programming. To do so, I created a task like this *task :setup_env => ['db:reset', 'db:migrate', 'db:test:prepare']* and observed that after execute * rake setup_env*, it never execute db:test:prepare properly. In order to

[Rails] Rake task that allows you generate static error pages in public folder from partial.

2013-02-22 Thread Alexey Chernenkov
https://gist.github.com/907th/5013075 Rake task that allows you generate static error pages in public folder from layouts/exception partial. Usage: rake exceptions:compile_error_pages RAILS_ENV=production. Dependencies: colored gem for pretty output (https://rubygems.org/gems/colored), rails 3.2

Re: [Rails] rake db:migrate_plugins RAILS_ENV=production fails with "no such file to load -- initializer"

2013-02-06 Thread Jordon Bedwell
On Wed, Feb 6, 2013 at 11:04 AM, habur gate wrote: > I'm running Redmine on Ruby, and attempting to load a new plugin. When I > attempt to run the command: It's diagnostically irrelevant to mention that you "installed a new plugin" and not provide that plugin name and how you went about doing it.

[Rails] rake db:migrate_plugins RAILS_ENV=production fails with "no such file to load -- initializer"

2013-02-06 Thread habur gate
I'm running Redmine on Ruby, and attempting to load a new plugin. When I attempt to run the command: rake db:migrate_plugins RAILS_ENV=production It fails with this error: rake aborted! no such file to load -- initializer /var/www/redmine/config/boot.rb:65:in `require' /var/www/redmine/config/bo

Re: [Rails] rake db:migrate problem

2013-02-02 Thread Colin Law
On 2 February 2013 16:03, Haris Hajdarevic wrote: > mini@mini:~/Sites/music_library$ rake db:migrate > rake aborted! > couldn't parse YAML at line 28 column 6 > /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in > `database_configuration' Possibly a clue there, y

[Rails] rake db:migrate problem

2013-02-02 Thread Haris Hajdarevic
mini@mini:~/Sites/music_library$ rake db:migrate rake aborted! couldn't parse YAML at line 28 column 6 /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in `database_configuration' /home/mini/my_gems/gems/activerecord-3.2.9/lib/active_record/railtie.rb:78:in `block (

[Rails] rake db:migrate failing against oracle

2013-01-31 Thread Cris Shupp
Hello All -- I am using jruby 1.6.7.2 with rails 3.2.11 to create a brown bag for several other developers. I cannot get the migration to work to save my life... In my database yaml file I have the following: --- development: adapter: jdbc driver: oracle.jdbc.driver.OracleDriver url: jdbc:o

Re: [Rails] rake task ) fileutils how to remove parent specific folder

2012-11-20 Thread Erwin
Works great Jordon ! thanks again !! Le mardi 20 novembre 2012 12:22:41 UTC+1, Jordon Bedwell a écrit : > > On Tue, Nov 20, 2012 at 5:18 AM, Jordon Bedwell > > > wrote: > > On Tue, Nov 20, 2012 at 5:08 AM, Erwin > > wrote: > >> I have a fixtures directory structure > >> > >> fixtures >

Re: [Rails] rake task ) fileutils how to remove parent specific folder

2012-11-20 Thread Erwin
Thanks Jordon I also discover I can use Dir.glob + match ... with directories .. ( though it was only for file directories = Dir.glob("#{File.join(MyApp.config.fixtures_path)}/*/\*alpha\*") will test your answer too.. thanks again Le mardi 20 novembre 2012 12:22:41 UTC+1, Jordon Bedwell a é

Re: [Rails] rake task ) fileutils how to remove parent specific folder

2012-11-20 Thread Jordon Bedwell
On Tue, Nov 20, 2012 at 5:18 AM, Jordon Bedwell wrote: > On Tue, Nov 20, 2012 at 5:08 AM, Erwin wrote: >> I have a fixtures directory structure >> >> fixtures >> en >> alpha >> beta >> delta >> es >> alpha >> beta >> delta >> > __SNIP__ > >> is there a way to remove al

Re: [Rails] rake task ) fileutils how to remove parent specific folder

2012-11-20 Thread Jordon Bedwell
On Tue, Nov 20, 2012 at 5:08 AM, Erwin wrote: > I have a fixtures directory structure > > fixtures > en > alpha > beta > delta > es > alpha > beta > delta > __SNIP__ > is there a way to remove all folders with name 'alpha' in ALL locales > folder, and get a resulting

[Rails] rake task ) fileutils how to remove parent specific folder

2012-11-20 Thread Erwin
I have a fixtures directory structure fixtures en alpha beta delta es alpha beta delta and one rake task to remove all fixtures path = File.join(MyApp.config.fixtures_path) FileUtils.rm_rf(path) or all folders w specific locale path = File

Re: [Rails] rake test:units error because not null constraint.

2012-11-19 Thread Mauro
On 18 November 2012 21:24, Colin Law wrote: > On 18 November 2012 19:42, Mauro wrote: >> Hello. >> I have this unit test: >> >> test "User validations" do >> user = User.new >> assert user.invalid? >> assert user.errors[:uid].any? >> assert user.errors[:name].any? >> assert user.errors[

Re: [Rails] rake test:units error because not null constraint.

2012-11-18 Thread Jordon Bedwell
On Sun, Nov 18, 2012 at 1:42 PM, Mauro wrote: > Hello. > I have this unit test: > > test "User validations" do > user = User.new > assert user.invalid? > assert user.errors[:uid].any? > assert user.errors[:name].any? > assert user.errors[:role].any? > end You should probably move each o

Re: [Rails] rake test:units error because not null constraint.

2012-11-18 Thread Colin Law
On 18 November 2012 19:42, Mauro wrote: > Hello. > I have this unit test: > > test "User validations" do > user = User.new > assert user.invalid? > assert user.errors[:uid].any? > assert user.errors[:name].any? > assert user.errors[:role].any? > end > > When I run it I have this error: >

[Rails] rake test:units error because not null constraint.

2012-11-18 Thread Mauro
Hello. I have this unit test: test "User validations" do user = User.new assert user.invalid? assert user.errors[:uid].any? assert user.errors[:name].any? assert user.errors[:role].any? end When I run it I have this error: null value in column "uid" violates not-null constraint: INSERT

[Rails] rake db:seed on EC2

2012-06-22 Thread bertly_the_coder
Hey guys, How would one run the equivalent of rake db:seed on their EC2 instance? I added this to my deploy.rb file: namespace :deploy do desc "Populates the Production Database" task :seed do puts "\n\n=== Populating the Production Database! ===\n\n" run "cd #{current_path}; rake db

Re: [Rails] rake aborted

2012-06-21 Thread Walter Lee Davis
What version of rake, what version of Ruby, what version of Rails? Also, what version of Gem? There's lots of reasons why this might not work. Are you using rvm? If so, make a new gemset and bundle install again there. Triple check that the version of Rails in your tutorial matches the version i

Re: [Rails] rake aborted

2012-06-21 Thread Walter Lee Davis
On Jun 21, 2012, at 12:32 PM, n/a n/a wrote: > I've been trying to follow Ruby on Rails 3 Tutorial by Michael Hartl but > had a problem on page 199 when it asks me to enter "rake db:migrate". I > got the following results: > -- > rake aborted! > undefined method `mass_assignment_sanitizer=' for >

[Rails] rake aborted

2012-06-21 Thread n/a n/a
I've been trying to follow Ruby on Rails 3 Tutorial by Michael Hartl but had a problem on page 199 when it asks me to enter "rake db:migrate". I got the following results: -- rake aborted! undefined method `mass_assignment_sanitizer=' for ActiveRecord::Base:Class Tasks: TOP => db:migrate => enviro

Re: [Rails] rake about > Environment staging

2012-06-14 Thread tom
good points rick, it lead me to the issue: my system-user groupmembership was wrong. i added for some other reasons my system user to the root and some other groups...that messed everythign up. using a new user, same rvmrc & Gemfile works again as expected. thx On Mon, Jun 11, 2012 at 3:30 PM, Ri

Re: [Rails] rake db:setup doesn't run migrations on test db?

2012-06-13 Thread Oscar Del Ben
You should use rake db:test:prepare -- Oscar Del Ben Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, June 13, 2012 at 6:32 AM, Joshua Muheim wrote: > Hey everybody > > I just noticed that rake db:setup doesn't seem to run migrations on the > test db (although it creates i

[Rails] rake db:setup doesn't run migrations on test db?

2012-06-13 Thread Joshua Muheim
Hey everybody I just noticed that rake db:setup doesn't seem to run migrations on the test db (although it creates it if it's not existing)?! Is this normal behavior? And if so, why? Thanks for help, Josh -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

Re: [Rails] rake about > Environment staging

2012-06-11 Thread Rick
I'm not really too up on rvm but I wonder... Is it possible that your work environment, specifically the login shell that you are using to type commands in a terminal window, includes an alias for rake? Since staging is not one of the three default environments for RoR it had to be created wit

Re: [Rails] rake about > Environment staging

2012-06-10 Thread tom
inline On Sun, Jun 10, 2012 at 12:30 PM, Colin Law wrote: > On 10 June 2012 11:19, tom wrote: > > Top posting still :( > > > yes, thats correct > > > > RAILS_ENV=development rake db:migrate > >>> runs in staging env. > > I don't understand why you then went on to ask > >> > where does rake get

Re: [Rails] rake about > Environment staging

2012-06-10 Thread Colin Law
On 10 June 2012 14:25, Rick wrote: > How about running: "export RAILS_ENV=development ; rake about" > > What does rake report for Environment in this case? I had forgotten rake about, what does rake about show without setting RAILS_ENV? Colin > > > On Sunday, June 10, 2012 6:30:39 AM UTC-4, Col

Re: [Rails] rake about > Environment staging

2012-06-10 Thread Rick
How about running: "export RAILS_ENV=development ; rake about" What does rake report for Environment in this case? On Sunday, June 10, 2012 6:30:39 AM UTC-4, Colin Law wrote: > > On 10 June 2012 11:19, tom wrote: > > Top posting still :( > > > yes, thats correct > > > > RAILS_ENV=development

Re: [Rails] rake about > Environment staging

2012-06-10 Thread Colin Law
On 10 June 2012 11:19, tom wrote: Top posting still :( > yes, thats correct > > RAILS_ENV=development rake db:migrate >>> runs in staging env. I don't understand why you then went on to ask >> > where does rake get the environment info if i ommit 'RAILS_ENV' when >> > executing a rake command?

Re: [Rails] rake about > Environment staging

2012-06-10 Thread tom
yes, thats correct RAILS_ENV=development rake db:migrate >> runs in staging env. thx On Sun, Jun 10, 2012 at 9:36 AM, Colin Law wrote: > On 9 June 2012 23:10, tom wrote: > > no, it executes eg the migrations on the staging-db, but if i start up > > webrick via "rails s" it comes up the sta

Re: [Rails] rake about > Environment staging

2012-06-10 Thread Colin Law
On 9 June 2012 23:10, tom wrote: > no, it executes eg the migrations on the staging-db, but if i start up > webrick via "rails s" it comes up the standard development environment Since you have top posted (rather than inline) I am not certain what you are saying no to. Are you saying that if you

Re: [Rails] rake about > Environment staging

2012-06-09 Thread tom
no, it executes eg the migrations on the staging-db, but if i start up webrick via "rails s" it comes up the standard development environment where does rake get the environment info if i ommit 'RAILS_ENV' when executing a rake command? thx On Sat, Jun 9, 2012 at 10:21 PM, Colin Law wrote: >

Re: [Rails] rake about > Environment staging

2012-06-09 Thread Colin Law
On 9 June 2012 20:11, tom wrote: > hi, > its just a simple rake import tasks (using :environment, but all my rake > commands are affected, even a migration goes straight to staging... > > namespace :import do >   desc "import automobiles step1" >   task :automobiles => :environment do >     .

Re: [Rails] rake about > Environment staging

2012-06-09 Thread tom
hi, its just a simple rake import tasks (using :environment, but all my rake commands are affected, even a migration goes straight to staging... namespace :import do desc "import automobiles step1" task :automobiles => :environment do . > i've checked everything for stagi

Re: [Rails] rake about > Environment staging

2012-06-09 Thread Oscar Del Ben
what's the content of Rakefile? -- Oscar Del Ben Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Friday, June 8, 2012 at 12:14 PM, tom wrote: > its empty > > here are some values from 'env' > > MY_RUBY_HOME=/home/tom/.rvm/rubies/ruby-1.9.3-p194 > rvm_bin_path=/home/tom/.rvm/bin > G

  1   2   3   4   >