[Rails] Re: Looking for insight into the Rails Way of handling views

2009-12-13 Thread Billee D.
Senior members of the community can correct me if I'm wrong here, but I think it has always been about code reuse. The view always has and always will be refined and fussed over. However, the the one thing that remains consistent is code reuse; which means partials, helpers and modules. But, as

[Rails] code coverage tool for manual testing

2009-12-13 Thread pankaj
Is there any tool for checking code coverage in manual testing Regards, Pankaj -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] Good docs on writing gems?

2009-12-13 Thread phil
Are there any good docs / blogs / websites about writing gems? We are trying to take a bit of code and put it into a gem but just can't find documentation on the specifics of writing one! For instance - 1 - How can we have a different dependencies based on platform? 2 - How do we reference other

[Rails] Permalink and cache page

2009-12-13 Thread Yiannis
I made the example in railscasts 117 http://railscasts.com/episodes/117-semi-static-pages for clean urls and static pages and it worked fine. After that I wanted to do a simple page cache with pages_cache and expire_page (as in railscasts 89 http://railscasts.com/episodes/89-page-caching). The

[Rails] Re: any use of flash causing stack level too deep

2009-12-13 Thread Ritchie
You haven't defined a flash method that calls flash have you? On Dec 13, 1:23 pm, Bob Smith bsm...@gmail.com wrote: Is there any way to clear what's in there? This happens any time flash[] is in my code. It can be setting or reading a value. I've tried commenting out all uses of flash in my

[Rails] Re: how can I download full Rails API doco in the format it is at http://api.rubyonrails.org/ ???

2009-12-13 Thread Rick
Take a look at http://railsapi.com/. It's not quite the same form but the content and interface is there. You might also take a look at http://railsbrain.com although it's only current to 2.3.2. Of course, there's always the question of what version / patch level. That's where there's no

[Rails] Re: how can I download full Rails API doco in the format it is at http://api.rubyonrails.org/ ???

2009-12-13 Thread vwchris
I second the suggestion for http://railsapi.com/. It allows you to tailor whatever combination of rails/ruby/a few specific gems apis together and download them locally to your machine. It's pretty easy to search and has a nice layout. On Dec 13, 8:56 am, Rick richard.t.ll...@gmail.com wrote:

Re: [Rails] Re: how can I download full Rails API doco in the format it is at http://api.rubyonrails.org/ ???

2009-12-13 Thread Agustin Nicolas Viñao Laseras
1) Download the rails repo at *http://github.com/rails/rails* 2) Inside the directory, run *rake -T* and you see this: rake clobber_rdoc # Remove rdoc products rake default # Run all tests by default rake package # Run package task for all projects rake pdoc # Publish

Re: [Rails] Re: How to make PUT with html forms?

2009-12-13 Thread Jonhy Pear
Thank you. I tried just that now. But still produce the same result: form action= /user/reset_password/1/b5fa7579f3d3e10723e997b1300b2521ef7c5774958c56ff4b035be2f95b2cdd?method=put method=postdiv style=margin:0;padding:0;display:inlineinput name= authenticity_token type=hidden value=

[Rails] Rails Hosting

2009-12-13 Thread Craig White
Getting ready to start a new commercial web site and looking at web hosting with Rails and EngineYard is very pricey and DreamHost.com scares me a little. Anyone have good results with DreamHost and Passenger? Any other suggestions for a new startup? Craig -- This message has been scanned

Re: [Rails] Re: How to make PUT with html forms?

2009-12-13 Thread João Pereira
Ok, thank you. My form is not AJAXified. I managed to fix the problem. It probably has something to do with the rendering of the form using form_tag. If I have hardcoded the hidden field, everything is fine: %=password_field_tag :password_confirmation, @password_confirmation % This is a hack and

Re: [Rails] Finding non-empty has_many associations with a named_scope

2009-12-13 Thread maryam kamali
ithank iam very rech no help by On Sun, Dec 13, 2009 at 2:10 AM, Ryan Waldron r...@erebor.com wrote: If I have these classes: class Customer ActiveRecord::Base has_many :jobs ... end class Job ActiveRecord::Base belongs_to :customer ... end can I construct a named scope that

Re: [Rails] Rails Hosting

2009-12-13 Thread Borja Martín
I would suggest you to check for a vps like slicehost, linode or rackspace instead of a shared hosting Regards On Sun, Dec 13, 2009 at 5:17 PM, Craig White craigwh...@azapple.com wrote: Getting ready to start a new commercial web site and looking at web hosting with Rails and EngineYard is

[Rails] Re: Rails Hosting

2009-12-13 Thread maykelrr
Hi Craig, I think we [1] can help, we offer managed Ruby on Rails VPS hosting so you get all the good of a VPS without even managing the server stuff. Thanks, Maykel -- [1] www.speedyrails.com On Dec 13, 11:17 am, Craig White craigwh...@azapple.com wrote: Getting ready to start a new

Re: [Rails] Rails Hosting

2009-12-13 Thread Matt Harrison
On Sun, Dec 13, 2009 at 09:17:55AM -0700, Craig White wrote: Getting ready to start a new commercial web site and looking at web hosting with Rails and EngineYard is very pricey and DreamHost.com scares me a little. Anyone have good results with DreamHost and Passenger? Any other

[Rails] Need help...NameError in InteractController#add_to_cart

2009-12-13 Thread Oluwayomi Oluwadara
Hi,I am developing a web app and am following the text-Agile web development.Each time I click my add to cart button i always get the   page below:I have double checked to see if i have errors in my code,there was none,please what do i need to do to proceed? NameError in

Re: [Rails] Need help...NameError in InteractController#add_to_cart

2009-12-13 Thread Susan McM. Tucker
Though I have only been playing with Rails for about a month, I think I can answer this one. You need to define add_a_cart in the store_controller.rb. Good luck. *susan* Hi,I am developing a web app and am following the text-Agile web development. Each time I click my add to cart

[Rails] Re: how can I download full Rails API doco in the format it is at http://api.rubyonrails.org/ ???

2009-12-13 Thread greghauptmann
excellent - thanks guys - I've used each approach so I'll be right to go when I'm offline :) On Dec 14, 12:20 am, Agustin Nicolas Viñao Laseras agustinvi...@gmail.com wrote: 1) Download the rails repo at *http://github.com/rails/rails* 2) Inside the directory, run *rake -T* and you see this:

[Rails] Attempt to write a readonly databae

2009-12-13 Thread doug
I am writing a double-opt-in registration routine. An incoming reply email is supposed to trigger an update to the database. I am getting this error: 'log': SQLite3::SQLException: attempt to write a readonly database: UPDATE members SET double_opt_in = 'OK', updated_at = '2009-12-13

[Rails] Re: how to build a website using ruby on rails

2009-12-13 Thread joshj
I'd also subscribe to the Railscasts podcasts in iTunes. They're extremely useful and still relevant no matter what version of rails you're starting with (although I hope you're starting with the latest and leaving the 1.2.x series in the past). On Dec 12, 3:03 am, analogue40 analogu...@gmail.com

Re: [Rails] Good docs on writing gems?

2009-12-13 Thread Marcelo de Moraes Serpa
As far as I know, there's a book by apress. Or you can just google :) 2009/12/13 phil p...@philsmy.com Are there any good docs / blogs / websites about writing gems? We are trying to take a bit of code and put it into a gem but just can't find documentation on the specifics of writing one!

[Rails] Mactag - Emacs TAGS for Rails

2009-12-13 Thread rejeep
Hi! I just finished a Rails plugin that you Emacs users might be interested in. The plugin makes it easy to create Emacs TAGS files for your Rails projects. Check it out: http://github.com/rejeep/mactag Blog post: http://tuxicity.se/emacs/rails/2009/12/12/mactag-emacs-tags-for-rails.html --

[Rails] Re: Rails Hosting

2009-12-13 Thread kilari
Craig, RailsPlayground.com One stop for all Rails needs. Awesome support. On Dec 13, 9:17 pm, Craig White craigwh...@azapple.com wrote: Getting ready to start a new commercial web site and looking at web hosting with Rails and EngineYard is very pricey and DreamHost.com scares me a little.

Re: [Rails] Rails Hosting

2009-12-13 Thread maryam kamali
ok thanks On Sun, Dec 13, 2009 at 7:47 PM, Craig White craigwh...@azapple.com wrote: Getting ready to start a new commercial web site and looking at web hosting with Rails and EngineYard is very pricey and DreamHost.com scares me a little. Anyone have good results with DreamHost and

[Rails] Re: any use of flash causing stack level too deep

2009-12-13 Thread Bob Smith
Finally got tired of playing with this.. A new project with the app, config, db, and public/stylesheets directories works fine.. Even rake tmp:clear wouldn't get rid of those values.. Oh, well.. gone now : Bob On Dec 13, 12:23 am, Bob Smith bsm...@gmail.com wrote: Is there any way to clear

[Rails] Re: Printserver / User-Customizable Template-System / OpenOffice

2009-12-13 Thread Jan Kechel
So no one would have interest in this? About the right tool for the right job. C# instead of Java? Or did you mean C# instead of the whole RoR app? cu, jan On Dec 12, 8:27 pm, Johan De Klerk johandk...@gmail.com wrote: Rather use C# and save yourself a lot of headaches... not that Ruby cant