[Rails] Re: Named routes in link_to wrapper

2009-04-28 Thread Aa Wilson
Oh yes, I had forgotten that I had solved the second problem. I actually made accessors, then used the make_helper function. to_query sounds delectable, and I'll take a look at polymorphic_path. Thanks a bundle! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~-

[Rails] Re: Named routes in link_to wrapper

2009-04-28 Thread Aa Wilson
I just wanted to bump this once, because I'm still very interested in this, even though my workarounds are satisfactory. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Rub

[Rails] Re: What is 'Representational State Transfer'?

2009-04-28 Thread Aa Wilson
JDM wrote: > "Representational State Transfer defines a convention for using HTTP > to both identify and manipulate related information that is > conceptually mapped into an aggrregate construct referred to as a > Resource." > > Jim Maher Quite succinct. I like it. -- Posted via http://www.r

[Rails] Named routes in link_to wrapper

2009-04-23 Thread Aa Wilson
I am trying to create a custom link_to helper that passes sort parameters to a link. It has the following code, which is pretty much just a rewrite of link_to: def sort_link_to(sort, old_sort, old_dir, *args, &block) if block_given? options = (args.first || {}).merge({ :old_s

[Rails] Re: Assert_select with count 0

2009-02-03 Thread Aa Wilson
quot;text" value of the hash. Cheers. Aa Wilson wrote: > Hello, all. This is short and simple. I have this statement in a > functional test: > > assert_select 'input' do > assert_select "[name=?]", {:count => 0,:text =>/areas\[1\]/} > en

[Rails] Assert_select with count 0

2009-02-02 Thread Aa Wilson
Hello, all. This is short and simple. I have this statement in a functional test: assert_select 'input' do assert_select "[name=?]", {:count => 0,:text =>/areas\[1\]/} end This assertion gives me the following: 1) Failure: test_areas(SampleControllerTest) [c:/ruby/lib/ruby/gem

[Rails] Re: Database Interaction Encoding Problem

2008-09-11 Thread Aa Wilson
Frederick Cheung wrote: > On 11 Sep 2008, at 16:37, Aa Wilson wrote: > >> the gist of things: >> production environment (in which case, everything comes out exactly as >> compensate for whatever is giving this wonky output. As it is, we're >> pretty stumped.

[Rails] Database Interaction Encoding Problem

2008-09-11 Thread Aa Wilson
This is cross-posted to railsforum.com, so if you frequent both you may see it in both places. So, my co-worker and I are working on this project, a Rails app using an MS SQL database with lots of legacy stuff built in. He's stumbled across a strange error, and we don't really know where to star