Github clone for mac is awesome! After using gitx for years, I’m excited to try something new and I must say, so far, i’ve very happy. Very little bugs and works great from the terminal.
How to fixed the ” undefined method ‘task’ ” in Rails 3.0.7
rake aborted! undefined method `task' for #<Yourapp::Application:0x00000101759a70> (See full trace by running task with --trace)
Does this look familiar? I know what your thinking. WDF? I didn’t do anything. Right? Well, actually you did. You updated bundler, which used rake 0.9.0 and your broke it all! Abandon ship! Abandon ship! Oh wait.. there is a fix. And here it is. Open your Rakefile. Got it open? Good. Now put this snippet of code inbetween the
require 'rake'
And the
Yourapp::Application.load_tasks
The snippet
module ::Yourapp
class Application
include Rake::DSL end
end
module ::RakeFileUtils
extend Rake::FileUtilsExt
end
And wow! Things should be working. If your having problems after this, just delete your Gemfile.lock, remove all of your gems in your gemset (you are using RVM with gemsets aren’t you?),then bundle install your gems again. Yup, your rake will be working as right as rain in no time.
Also so you know, patches have been merged to the latest version of rails that fixes this problem so if you just upgrade your problem will be solved, however.. it might break more things ;)
Take my quick survey (just 4 questions)
Mysql , Mac and Gems
Installing mysql5 on a mac with MacPorts
Reload your ruby script/console on the fly!
Very Cool for Rails Docs
Rubyonrails.org is down! What do we do?!
So it looks like someone forgot to pay their bill on time. One again the ad gods strike! I want my api! I want my rails tutorials back! I want…. rubyonrails.org restored to it’s true owner, some nerd living in his basement (or maybe a nice house). For me, the sense of security that surrounds knowing rails “got my back”…. is slowly being dissolved into… well something else.
So where did it go? When will it come back? We may never know.. just like Why, the luck still, vanished without a goodbye.
- The Net Duck
Your physical body effects your emotions!
For instance, maybe your feeling blue. Go somewhere private and just smile and move your body quickly. This will really get you feeling less down. Also, when you walk, don’t look down, look higher, you will be surprised at how much better this makes you feel. You can do this for about anything.
Fantastic.
- The Net Duck
I found this great template for creating a simple rails app
If you don’t know what Rails Templates are, they are pretty much a way of generating rails code the way you want it to be generated. For example, you find yourself “always” doing the same thing over and over again to set up your authentication, a template will automat that task for you. This guy created what I think is a pretty good one
http://github.com/hectoregm/groundwork
- The Net Duck
Posted via web from feel the chi | Comment »
