Displaying 20 results from an estimated 4000 matches similar to: "Textmate command to display Active Record object attributes"
2006 Jul 31
1
Textmate command to display specifications
I''ve added a command that displays the html formatted output of some
specifications. It''s as simple as..
#!/bin/sh
/usr/bin/env spec $TM_FILEPATH -fhtml
I''m wondering if anyone has anything more sophisticated (although to
be fair, this does the job for now)? I''ve seen some posts about a
rspec on rails textmate command but haven''t taken a look at it
2006 Dec 25
1
TextMate command to display ActiveRecord model attributes
I''ve written a TextMate command bundle that reminds you the database
columns of an ActiveRecord model displaying them in a tooltip just by
selecting the model name (for example "Account") anywhere in your
code and hooking up the bundle (the way you''ve chosen in the bundle
properties).
It''s available here:
2006 Aug 07
28
Dr Nic’s Magic Models
Welcome! Welcome! Welcome! Ladies and Gentlemen, today you shall be
thrilled and dazzled by wonders of magical mystery.
Dr Nic?s Magic Models will now be unveiled to all. Mystery and magic
that you will be able to perform at home.
Within your ActiveRecord models, never again will you need to write:
* validates_presence_of validations
* has_many and belongs_to statements
* has_many
2006 Jul 24
6
Mocking causes empty specification blocks
I''ve found myself mocking out a published api in my set-up method.
This has led to some contexts having a large set-up and empty
specifications. As the mocks get auto-verified, the specification
blocks have nothing to do but serve as documentation. Does this sound
bad?
Chris
2009 Mar 07
2
[rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems
I get the following error using both edge version of the TM bundle and
rspec/rspec-rails in vendor/plugins.
/Users/nshb/Library/Application Support/TextMate/Bundles/
RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require'': No such file
to load -- rubygems (LoadError) from /Users/nshb/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2
from
2005 Nov 08
3
Textmate "e ." in the Video
>From the newbie corner...
In the demo video our illustrious Rails guru summons textmate with "e
." from the command line, magically opening textmate within the
context of the respective rails app.
I downloaded textmate, love it, but want to know how to make the same
magic happen from the command line, rather than having to open the app
via gui in the Applications folder.
Thanks.
2007 Nov 28
6
textmate bundle
Does anyone else have issues running rspec textmate bundle? I''ve got
revision 2997, but the blasted thing just won''t run.
It is checked out to my /Users/zdennis/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle
When it runs I get the below error...
"textmate" is not a valid class name
2006 Sep 25
3
Problem stubbing instances referred to by constants
Hi James,
An instance retains its mocha between tests if that instance is
pointed to by a constant. The simplest failing test is something like
(add as a new file in mocha/test)..
#--code--
require File.join(File.dirname(__FILE__), "test_helper")
require ''stubba''
class WemStubbaTest < Test::Unit::TestCase
Arr = [1, 2, 3]
def test_a
2009 May 09
7
does somebody use XCode on Mac for RoR instead of TextMate?
does somebody use XCode on Mac for RoR instead of TextMate? I wonder
how is it compared to TextMate... TextMate uses the default font of
Monaco... the Xcode screenshot on Wikipedia uses Courier... I wonder if
Xcode looks as good as TextMate when the font is changed to Monaco as
well? Thank you.
--
Posted via http://www.ruby-forum.com/.
2005 Oct 06
3
Ruby/Rails TextMate macros
Could someone kindly send me a copy of the TextMate macros that pertain
to Ruby and Rails? I am assuming they are stored in or can be exported
to some kind of plain text file...
Sadly I am not yet able to make the leap from Linux (and Windows) to a
Mac and I am using Slickedit, which has *zero* built in support for
Ruby/Rails. I can add macros and code templates so I thought it might be
2007 Oct 03
4
TextMate language weirdness
I''m having trouble with TextMate and assigning the RSpec language to
*_spec.rb files within rails projects. Here is what is happening:
I''m in a file that has the language "Ruby on Rails" selected.
I do a ctrl-shift-down to switch to the corresponding _spec.rb file.
The _spec.rb file has the language "Ruby on Rails" selected.
I change the language to
2007 Jun 14
4
Can''t run RSpec files in TextMate
Hi
Not sure if this is the place to ask this or not. I''ve upgraded to
RSpec 1.0.5, installed the latest TextMate bundle, but whenever I do
"Run Behaviour Descriptions in selected files/directories" I get this:
/Users/ashleymoran/Library/Application Support/TextMate/Pristine Copy/
Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in `run_files'':
private method
2007 Oct 15
1
TextMate File Type Detection for RSpec & Rails
For those of you struggling with TextMate not properly detecting
rspec files, Allan Odgaard (the author of TextMate) has kindly
provided a tutorial on how to set up TextMate to associate all .rb
files with rails and all _spec.rb files with rspec.
http://macromates.com/blog/2007/file-type-detection-rspec-rails
His instructions work great and switching between rspec and rails
files has
2006 Feb 25
1
TextMate: syncPEOPLE on Rails Bundle Becomes Built-in Rails Bundle
It?s official, folks!
After talking with my partner, Greg Narain, as well as Allan Odgaard,
the creator of TextMate, we (syncPEOPLE) have decided to release our
Rails bundle under the MIT license so that it can nest itself nicely
within its new home, the TextMate Subversion Bundle Repository.
What this means for the rest of us is that all of these great
features we?ve been madly
2007 May 18
1
problems with textmate and rspec bundle
Folks,
I saw David''s tutorial yesterday at RailsConf and started working on
RSpec lastnight and am having a *ton* of trouble with the bundle for
TextMate. I''ve made *some* progress, but thought I''d throw it to the
list
* I run ruby, including rb-rubygems using the MacPorts install (per
JDD''s Sandboxing Rails)
* installed rspec 0.9.4 (also rcov 0.8.0.2 and
2006 Jan 26
2
semi-on topic -- textmate question
Apologies in advance.
I have been using textmate and am getting to like it more and more.
The feature that is turning my crank and frothing my coffee right now
is "snippets". Wow! Is this ever cool! And if you aren''t using
Textmate, give it a try.
Anyhow, my snippets are saving me so much time and so utterly
wonderful that like other things in my life that are in
2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
This is not a question but a report on the difficulties I had and the
solution I found with respect to UTF-8, YAML::load, and Ruby/Rails.
Comments are appreciated.
- - -
I had been struggling for two days to get UTF-8 working in my Rails app.
I had/have a localization file, lib\locale\de.yml, that had iso-8859-1
encoding. I could not get that to display properly.
Marnen, quite correctly,
2006 Feb 18
3
Controller to View and Back Again (TextMate shortcut)
One of the most inconvenient things about the Rails directory
structure is the relative distance between the controller and its
corresponding view files. While it?s organizationally sound, it?s
often a pain to go hunting for a view (especially in a complicated
application that has modules and modules within modules).
I discovered a fantastic little key-combo within TextMate the other
2006 Apr 26
2
MASC = A New Way to Use Textmate Snippets
Just thought I''d announce this on the Rails list since I know several
of you use Textmate: there''s a new feature I''m calling "Multiple
Arbitrary Simultaneous Carets" or MASC for short, which is available
in my personal TM bundle. It''s been handy enough for me that I
thought others might enjoy it.
2008 Jul 24
3
Integrating R and Textmate
To Whom It May Concern:
I need to use various packages in R and I also want to use Textmate.
Problem 1: Textmate doesn't seem to recognize the packages that are
already installed on R. Problem 2:
When I execute the following command:
install.packages("ade4", repos="http://cran.r-project.org", contriburl
= contrib.url(