search for: someclassname

Displaying 3 results from an estimated 3 matches for "someclassname".

2007 Sep 26
0
activerecord multiple databases
...nnectionFactory class DB1 < ActiveRecord::Base self.establish_connection(Project::DBCONFIG[''db1'']) end class DB2 < ActiveRecord::Base self.establish_connection(Project::DBCONFIG[''db2'']) end end module ClassMethods module SomeClassName def long_query(name) r = find_by_sql ["SELECT ...",name] r.first unless r.empty? end end module SomeOtherClass def long_query(number) r = find_by_sql ["SELECT ...",name] r.first unless r.empty? end end end en...
2007 May 09
4
UI testing framework? (w/o selenium)
...uot; page.should_have :div, :id => ''copyright'' page.should_include :css, ''default.css'' page.should_have.no_broken_links page.should_have.at_least.3 :div, :class => "bbxBody" page.should_have.at_most.6 :div, :class => "someClassName" # page.[name_of_form]_form. page.search_form.submit :name => "California" do result.status.should_be :success result.should_have :image, "logo.gif" result.url.should_contain "some_page.html" end page.should_have :div, :class...
2006 Feb 09
3
Draggables and Droppable performance (tips)
...ating the droppables when needed, it will be MUCH faster than if you just brute-force create all those droppables on page load. NOTE: I made this example create a droppable no matter what draggable is dragged over it, but you can add a check for Draggables.activeDraggable.element.className == "someClassName" if you only want the droppable created for certain draggables (put that check at the end of the initial if statement). Of course you can check for multiple classnames using the prototype functions if you need (or add any other conditions there for your application) this.createDroppableLis...