Every repository with this icon (
Every repository with this icon (
| Description: | Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2] edit |
-
If you're on leopard and are trying to install this and you have CS4 installed...
2 comments Created 2 months ago by j2flyarch -i386 osascript -e 'tell app "TextMate" to reload bundles'
instead of the reload command provided to force osascript to run in 32bit mode or it will fail. Not really an issue with this bundle, more an issue with the adobe stuff, but it does effect the Readme
Comments
-
When I issue shift-ctl-pipe and pick the generate option(1) I only see the standard generators listed in known_generators. Looks like find_generator_names returns an empty list.
How do I run the tests supplied with the bundle?
mac os x 10.6 RoR bundle from git,
Comments
results of running test:
/Users/tporter/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle/Support/test tporter@tinnie:test (master)> ruby test_generator.rb
Loaded suite test_generator
Started
EE.
Finished in 0.000583 seconds.1) Error: test_find_generator_names(TestBinGenerate):
NameError: uninitialized constant Generator::RailsPath
./../lib/rails/generate.rb:39:in `find_generator_names' test_generator.rb:12:in `test_find_generator_names'2) Error: test_generators(TestBinGenerate):
NameError: uninitialized constant Generator::RailsPath
./../lib/rails/generate.rb:39:in `find_generator_names' ./../lib/rails/generate.rb:30:in `setup_generators' test_generator.rb:21:in `test_generators'3 tests, 1 assertions, 0 failures, 2 errors
-
Hi there.
Apologies if this has been documented somewhere else, but if it has it's not immediately apparent.
When trying to run "install plugin" I get the following error:/usr/local/lib/ruby/1.8/erb.rb:354:in
trim_line2': private methodscan' called for # (NoMethodError) from /usr/local/lib/ruby/1.8/erb.rb:311:incall' from /usr/local/lib/ruby/1.8/erb.rb:311:inscan' from /usr/local/lib/ruby/1.8/erb.rb:500:incompile' from /usr/local/lib/ruby/1.8/erb.rb:668:ininitialize' from /Users/i0n/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby on Rails.tmbundle/Support/bin/list_plugins.rb:42:in `new' from /Users/i0n/Library/Application Support/TextMate/Pristine Copy/Bundles/Ruby on Rails.tmbundle/Support/bin/list_plugins.rb:42I've tried various things including setting the TM_RUBY and TM_BUNDLE_SUPPORT variables without any luck. Am I alone in this error, or is this something that is affecting others?
Comments
-
All keyboard shortcuts work fine for me except when the file being edited is a template(i.e. .html.erb) file. Code snippets can be inserted with the menu options but not when using the keyboard. Is this a bundle problem, a Textmate problem or maybe I'm not doing something right. I feel sure this did work once. I have raised this problem with Textmate. MY OS is Snow Leopard, my textmate version is 1.5.9(1510).
Comments
kendogprior
Fri Nov 20 13:05:49 -0800 2009
| link
This a comment to my own issue. Being a newbie to TextMate I have only just discovered that the Bundles editor for RoR has a 'scope selector' for the keyboard shortcuts. For the html.erb files it seems the scope should be set to 'source.ruby.rails'. This seemed odd to me but at least it allowed the keyboard shortcuts to work. Is there a quick way to change all the selectors that are relevant to views?
-
When using HTML(Rails) and using the command 'shift-ctrl + >' to get <% %>.
/tmp/temp_textmate.VbVhwa:19:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' /bin/bash: -c: line 1: syntax error: unexpected end of fileto_a' for "<%= %>":String (NoMethodError)I get <%= %> ok, but then I get the above error on the attempt to change it to <% %>
This is with the latest tmbundle, ruby 1.9.1 and rails 2.3.4Comments











Hmm, on my leopard machine (which doesn't have cs4 I think), that command is now failing weirdly:
$ arch -i386 osascript -e 'tell app "TextMate" to reload bundles' [002:085] MagicCam 0: Current process: osascript, Flash is loaded: no [002:085] Error(magiccammac.cc:276): MagicCam 0: MagicCamOpen: Not an allowed process! [000:002] MagicCam 0: Current process: osascript, Flash is loaded: no [000:002] Error(magiccammac.cc:276): MagicCam 0: MagicCamOpen: Not an allowed process! [000:000] MagicCam 1: Current process: osascript, Flash is loaded: no [000:000] Error(magiccammac.cc:276): MagicCam 1: MagicCamOpen: Not an allowed process! [000:002] MagicCam 1: Current process: osascript, Flash is loaded: no [000:002] Error(magiccammac.cc:276): MagicCam 1: MagicCamOpen: Not an allowed process!
WTF is MagicCam?!
(fails also without the arch -i386)
Answer: http://timesinker.blogspot.com/2009/05/weird-magiccam-error-message-from.html