[Rails] Re: Unit Test newbie problem

2010-05-17 Thread frogstarr78
The problem is that the function crud_views_as_a_string is not defined (GenModCRUD.rb:22:` def crud_views_as_a_string') to take an argument. But in your test you are calling it with an argument :string (TestGMC.rb:12: `crud_views_as_a_string(:string)' I'm not sure what you're testing, but to

[Rails] Re: Agile Web Dev (book) question: errors

2010-05-17 Thread frogstarr78
I copied and pasted and ran this code and it worked fine for me. Any stray , characters? On May 16, 6:50 pm, Orient Fang li...@ruby-forum.com wrote: HI, I have almost the same issue when I follow the 3rd Edtion. but I verified the every type characters, there should be no mistakes. Any one

[Rails] Re: Regular expression: How do I allow forward slashes?

2009-12-20 Thread frogstarr78
, the forward slash has closure properties.) Oh well it's working now, and I escaped the . as well (\.). Thank you for your help.  Much appreciated frogstarr On Dec 20, 12:09 am, frogstarr78 frogstar...@gmail.com wrote: It actually depends on where the . is in the Regexp. In your case

[Rails] Re: Regular expression: How do I allow forward slashes?

2009-12-19 Thread frogstarr78
Have you tried escaping them \/? On Dec 18, 11:01 pm, AlwaysCharging goodg...@gmail.com wrote: In my app, I allow users to submit urls.  They (of course) need the ability to submit urls with a forward slash, /, but whats the regular expression to allow them to do that? I currently use:

[Rails] Re: Regular expression: How do I allow forward slashes?

2009-12-19 Thread frogstarr78
is this? On Dec 19, 3:41 am, frogstarr78 frogstar...@gmail.com wrote: Have you tried escaping them \/? On Dec 18, 11:01 pm, AlwaysCharging goodg...@gmail.com wrote: In my app, I allow users to submit urls.  They (of course) need the ability to submit urls with a forward slash

[Rails] ActiveRecord belongs_to ActiveResource

2009-04-10 Thread frogstarr78
class Thing ActiveRecord::Base belongs_to :other_thing end class OtherThing ActiveResource::Base self.site = ... end The association here works. I can access other_thing from thing with no problems until, as usual, testing. Specifically functionally test the things_controller. The things