Comments (6)
As a user, when rails 3 officially comes out, I wouldn't mind this repository to migrate to rails 3 and another one to be created for rails 2, with some sort of "branching / fork" relationship between them.
This said, as a user, I would only find it natural if I had to download rails2-bundle for an older project.
Hope this user insight makes sense and helps, drnic.
from ruby-on-rails-tmbundle.
We could have three grammars: common "Ruby on Rails" (source.ruby.rails), with two edge cases per project: "Ruby on Rails 3" (source.ruby.rails.rails3) and "Ruby on Rails 2" (source.ruby.rails.rails2).
Then you'd pick Rails 3 or Rails 2 and only see the correct snippets. Ultimately it wouldn't matter about having separate tmbundles; it would be the grammar/syntax files.
from ruby-on-rails-tmbundle.
That would be an interesting approach that allows the maintenance of a single repo.
from ruby-on-rails-tmbundle.
Simplest approach may be the best:
- create a fork or branch to maintain an old version for Rails 2.
- dive head first into moving master towards Rails 3, removing Rails 2 stuff where necessary
from ruby-on-rails-tmbundle.
When you use the new Rails 3 erb formats, e.g. <%= form_for %> (adding the = sign), you get a syntax error with Ctrl-Shift-V.
I figured out that the bundle uses /usr/bin/erb, and Rails 3 uses a different erb in its gem directory. This explains why TextMate sees a syntax error, and Rails 3 does not.
How can I get TextMate to use the Rails 3 erb instead of /usr/bin/erb ? It's not clear to me whether the new erb can be set up as a standalone shell command; it's used in Rails 3 via "require". And it's not clear that you can just replace /usr/bin/erb without all the extra erubis code being added to some path.
from ruby-on-rails-tmbundle.
It really would be great to get a resolution on this issue. Great Bundle, not used due to Rails 3 Issues.
from ruby-on-rails-tmbundle.
Related Issues (20)
- Invalid XML in a tmSnippet HOT 1
- insert_add_column_or_create_table.rb:9:in `unprepend': private method `split' called for #<Array:0x1011e9d60> (NoMethodError) HOT 4
- Bundle Help displaying keystrokes incorrectly HOT 2
- generate {scaffold, ...} command tries to run script/generate in Rails 3 HOT 3
- opt-cmd-down does not see js.erb view files
- Show error when rails path is not found HOT 1
- Editing js.erb files in Rails 3
- erb indentation not quite right?
- Upgrade bundle HOT 1
- rails 3 generators from textmate HOT 1
- Class definition with :: doesn't seem to be honored with code coloring
- path error when using Show DB Schema for Current Class
- Bundle doesn't show up anymore HOT 1
- Cucumber syntax warning
- "Create Partial From Selection" Error HOT 2
- Create Partial From selection is not working
- Install with Git HOT 1
- Failure running "Quick Migration" HOT 2
- Create Partial from Selection not working HOT 1
- routes_auto_complete.rb not work with rails 4
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 ruby-on-rails-tmbundle.