Giter Site home page Giter Site logo

Comments (6)

DBA avatar DBA commented on July 30, 2024

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.

drnic avatar drnic commented on July 30, 2024

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.

DBA avatar DBA commented on July 30, 2024

That would be an interesting approach that allows the maintenance of a single repo.

from ruby-on-rails-tmbundle.

barmstrong avatar barmstrong commented on July 30, 2024

Simplest approach may be the best:

  1. create a fork or branch to maintain an old version for Rails 2.
  2. dive head first into moving master towards Rails 3, removing Rails 2 stuff where necessary

from ruby-on-rails-tmbundle.

jhaungs avatar jhaungs commented on July 30, 2024

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.

ChuckJHardy avatar ChuckJHardy commented on July 30, 2024

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)

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.