search for: lukeredpath

Displaying 20 results from an estimated 39 matches for "lukeredpath".

2006 Jul 07
2
Testing views with Hpricot
assert_tag smells bad. Hpricot smells nice (apricotty!). Testing your views with Hpricot: http://www.lukeredpath.co.uk/index.php/2006/07/07/testing-your-rails- views-with-hpricot/ Big thanks to _why for a great little library! Feedback is appreciated. rSpec integration coming soon (hopefully!). Cheers, Luke Redpath contact@lukeredpath.co.uk -------------- next part -------------- An HTML attachment was...
2006 Feb 21
26
Net::SMS::BulkSMS 0.1
...nt.credits This is my first open source release ever, so I hope somebody finds use for it. I put it together as I needed SMS functionality for another forthcoming open source Rails app called SiteSeer which can be found on Rubyforge and is due for a first release soon. -- Cheers, Luke Redpath www.lukeredpath.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060221/d7ea6f65/attachment.html
2006 Jun 29
2
Random routing errors in 1.1.3 with Mongrel
...me we restart the server. This may be a mongrel problem, it may be a rails problem (I''ve posted a bug on the trac) and I was wondering if anybody else had had similar problems since upgrading. Here''s the ticket: http://dev.rubyonrails.org/ticket/5551 Cheers Luke Redpath www.lukeredpath.co.uk
2006 Jun 07
9
Unobtrusive Javascript for Rails
...in his own as-yet unreleased unobtrusive_javascript plugin into a single plugin. This is essentially a preview release and probably not suitable for use on a production site just yet but we hope it will be production ready ASAP. So here''s the important details! The blog post: http://www.lukeredpath.co.uk/index....ript-for-rails/ The documentation/information: http://opensource.agileevolved.com/...usiveJavascript The source: http://opensource.agileevolved.com/...avascript/trunk All comments and ideas are welcome. Enjoy! ** Apologies if this ends up here twice but gmail is acting up -- Po...
2006 Jun 05
1
Unobtrusive javascript...what if?
...nformation on http://opensource.agileevolved.com in days to come, or stay tuned to my blog tomorrow for more. Apologies for the blatant promotion but we think people will like this. People have asked for unobtrusive JS in Rails for a while. Could it be here at last? Cheers Luke Redpath http://www.lukeredpath.co.uk http://opensource.agileevolved.com
2006 Mar 03
3
embedding a forum inside a rails app
what is the best way to embed a forum (phpbb is currently installed under /public/forums/) inside my layout ? I dont want the foum to be its own page i would like it to appear inside the main part of the page with navigation and border in tact. is this possible with the current way it is installed ? thanks adam -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jul 27
0
Rails Plugin Packs
...vourite plugins, you might often find yourself using the same group of plugins on every new Rails project that you begin. Wouldn''t it be great if you could automatically install your own custom group of plugins in one go? Well now you can...introducing Rails Plugin Packs? http://www.lukeredpath.co.uk/index.php/2006/07/27/install-your- favorite-rails-plugins-easily-with-rails-plugin-packs/ Feedback is welcomed and appreciated, as are additional ideas for possible uses. Cheers Luke Redpath www.lukeredpath.co.uk -------------- next part -------------- An HTML attachment was scrubbed......
2008 Mar 03
2
stuck on testing validation
Hello, I must be doing something dumb, but here it goes... why does this work? before(:each) do @work = Work.new end #for testing validates_presence_of :title it "should require a title" do @work.title = nil @work.should_not be_valid end while this doesn''t: def valid_work_attributes { :title => "guernica", :description
2006 Aug 01
0
Unobtrusive Javascript for Rails 0.2
...rectly to elements using content_tag and apply behaviours to elements without HTML IDs. This release also sees many of the most commonly used Rails Javascript/AJAX helpers upgraded to work in an unobtrusive manner. Grab Unobtrusive Javascript for Rails 0.2 now! More information: http://www.lukeredpath.co.uk/index.php/2006/08/01/release-unobtrusive- javascript-for-rails-02/ Subversion: http://opensource.agileevolved.com/svn/root/rails_plugins/ unobtrusive_javascript/tags/rel-0.2 Plugin documentation: http://opensource.agileevolved.com/unobtrusivejs/ Cheers Luke Redpath www.lukeredpath.co.uk...
2007 Oct 26
3
Specing with Subdomains as Account Keys
...that this must be an issues for others as well. So I have an app using subdomains as account keys. The Application Controller sets up @current_company in a before filter. Everything is done within the context of the @current_company. After reading about Demeter''s Revenge (http://www.lukeredpath.co.uk/ 2007/10/18/demeters-revenge), and reading Sinclair''s advice (link above), I refactored @current_company.items.find(:all) to @current_company.find_items. Still no luck. The spec fails with: -- Mock ''Company'' expected :find_items with (:all) once, but received...
2006 Jan 28
13
What''s the verb form of id?
Random question: I''ve written a method for the String class that turns an arbitrary line of text in to an identifier, e.g.: "My, what a beautiful day!" => "my_what_a_beautiful_day" "(anb*#NF(AMNV" => "anb_NF_AMNV" We''ve got all these great names already like underscore, classify, titleize and things like that. I''d
2006 Feb 22
2
sudo in switchtower and security
I''m attempting to deploy a rails application using switchtower. My IT guys are refusing to give me sudo for a user changeable script. I really can''t argue with their logic. If I have sudo for a script that I can update, well, I can do most anything I want. They are suggesting I create a cgi that performs the same function. Since the cgi would run as www-data (this is a debian
2006 Sep 13
2
Problem with RSpec and Mocha/Stubba
...39;'s the line where I''m trying to stub a method on an existing instance of an object: @connection.stubs(:logged_in?).returns(true) I''ve x-posted this to the Mocha dev list and RSpec dev list as I''m not sure where the issue lies. Cheers, Luke Redpath contact at lukeredpath.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mocha-developer/attachments/20060913/79b9a3f8/attachment-0001.html
2006 Aug 03
2
Plugins dependency mechanism?
Hi, With so many good plugins around at the moment, I''d perhaps like to require some of these in one of my own rather than try to re-write their functionality. Is there a mechanism available for making a plugin dependent on another plugin(s)? Cheers Dan -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 23
5
Web/HTTP Testing
Hello, I am looking for a user test automation tool. When I say ''user'', I mean it should mimic the user interacting with the app. That ultimately boils down to a tool that drives a browser or is able to make http requests and allow us to deal easily with the responses. Our requirements are to be able to write the tests in Ruby (no need to switch to other language for test
2006 Mar 05
2
Is Rails getting testing semantics wrong and making things confusing?
...models that need to work together to produce results. To support the above the tests folder would probably look something like this: unit/models unit/controllers acceptance/ integration/ fixtures/ I''d like to hear people''s thoughts on the above. -- Cheers, Luke Redpath www.lukeredpath.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060305/f6b7b937/attachment.html
2006 Nov 03
10
[PLUGIN] rspec_resource_generator - RESTful scaffold generator with RSpec specifications
rspec_resource_generator ======================== By Pat Maddox Use this generator to generate RESTful scaffolding with RSpec specifications. Syntax is exactly the same as the scaffold_resource generator: ./script/generate rspec_resource ModelName [field:type field:type] When you run this generator, it will create a migration, model, and model spec file. In addition, it gives you a RESTful
2006 Feb 21
7
Self-referencial habtm relationship
Heyo! I am setting up a self-referencial habtm relationship with the users of my app. I am using Chad Fowler''s "Rails Recipes" to get me started, and everything works great with the join table "people_friends". I add friends by doing somebody.friends << somebodyelse. However, with my app, there is an approval process so my join table has columns person_id,
2006 Jul 21
3
Unobtrusive Javascript plugin
Hi, I downloaded the unobtrusive_javascript pluing from this link (http://www.lukeredpath.co.uk/index.php/2006/06/06/introducing-unobtrusive-javascript-for-rails/) since I needed to have dynamic content in javascript (for a pop-up menu). Unfortunately I have been unable to make the plugin work. I followed the instructions on the website, but for some reason the javascript doesn?t w...
2006 Mar 21
0
Automatic namespacing of custom Rake tasks
...for 1.1. A word of warning - this of course means that any existing custom tasks you have will now need to be accessed using the appropriate namespace. I''m not sure how well this play with capistrano. http://dev.rubyonrails.org/ticket/4342 for the patch. Cheers, Luke Redpath contact@lukeredpath.co.uk