Giter VIP home page Giter VIP logo

Comments (5)

Dagnan avatar Dagnan commented on May 28, 2024

Lots of gems do not work on Windows. This is not a troll, but if you're thinking seriously about developping in Rails (et d'après ton blog j'imagine que oui :), you should consider using Linux (even through a virtual machine, which takes 10 min to setup) or... Mac OS.

from annotate_models.

Kulgar avatar Kulgar commented on May 28, 2024

Yeah I know... I'm quite stuborn with my windows environment for development :)

So far I had no problems programming Rails applications on Windows ^^. You're probably right, I should develop on another system and I'll surely do it. But I was hoping that someone did find a little trick to have annotate works on windows, I did find something, a little piece of code to add in lib/tasks, but it no longer works because of some new deprecated methods.

Well thanks for the answer by the way :) but if anyone have a trick, I'll be glad to learn it ^^.

Kulgar.

PS : I just wanted to tell people that "yes it is possible to develop on a Windows System", but yeah... as it is not a most recommanded environment for development, a lot of things just don't work right on Windows and that's not a troll, it's a fact, believe me ^^.

PPS (to answer to the French part of the message) : yes, my firm creates Rails Web Site, we love that language/framework and we started a French blog because the French community doesn't have a lot of rails lovers and rails information (don't know why, maybe because all the French Rails lovers know English xD and PHP ones does not :P).

PPPS:
The little trick I found was to create a "annotations.rake" file inside the /lib/tasks directory of the Rails project and put this code inside the file: (but it worked with annotate_models, which is no longer maintained)

 require 'annotate_models'

   def annotate_models
          AnnotateModels.do_annotations(
              :position_in_class => 'before', 
              :position_in_fixture => 'before'
          )
   end

   namespace :db do
        task :migrate do
            annotate_models
       end

   namespace :migrate do
       [:up, :down, :reset, :redo].each do |t|
          task t do
            annotate_models
         end
       end
   end
 end

from annotate_models.

turadg avatar turadg commented on May 28, 2024

@Kulgar, have you tried bundle exec annotate ?

from annotate_models.

Kulgar avatar Kulgar commented on May 28, 2024

Yes I did and I had a strange error :

"
c:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:143:in block in replace_gem': an from c:/Ruby192/lib/ruby/gems/1.9.1/bin/annotate:18:in

'
"

One of the first I quite don't understand...

from annotate_models.

dsandstrom avatar dsandstrom commented on May 28, 2024

Old thread, but ... got it to work with win7 x64
adding to Gemfile
"gem 'annotate'"
would not work, but
"gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'" did
However, heroku (maybe Item #36) did not like that so I removed the gem

from annotate_models.

Related Issues (20)

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.