Comments (5)
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.
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.
@Kulgar, have you tried bundle exec annotate
?
from annotate_models.
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.
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)
- Next release? HOT 2
- Allow annotations at bottom of file HOT 1
- annotate --delete doesn't respect ignore_unknown_models
- Running annotate after changing sorting doesn't reorder the columns in the new comment
- Additional index annotation to other table with same name but with prefix HOT 1
- Unable to annotate: ActiveRecord::Encryption::Errors::Decryption HOT 4
- Annotate gem does not support Rails autoloader collapsed directories HOT 4
- Please add a ruby version constraint to gemfile
- How should I set up a CI job to ensure that annotations are up to date? HOT 3
- Column wrongly mistaken as a geometric point
- Fix code scanning alert - Polynomial regular expression used on uncontrolled data
- Rails 7, annotate --routes failed HOT 6
- Can't execute `annotate` or `bundle exec annotate` commands HOT 2
- Unable to annotate a single model HOT 1
- Make `with_comment_column` work with `Annotate.set_defaults` HOT 7
- Configuration for custom spec directory
- Does not find factories with default suffix example
- annotate_models doesn't auto-annotate on down / rollback migrations in multi-DB environments
- Throws error when using composite primary keys (supported natively by rails 7.1) HOT 1
- Output columns in database schema order, not A-Z order. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from annotate_models.