If you are using pdf-writer with login engine, you can encounter a nasty problem with transactions in login engine like me(gosh… this was crazy). This is because login engine uses transaction-simple module (which is a part of transaction-simple by Austin Ziegler but not the whole gem) included in rails 1.1 in active record.
While including pdf-writer it require the […]
Archive for August, 2006
These Finders are deprecated
find_first [use find(:first)]
find_all [use find(:all)]
find_on_conditions [use find(:conditions)]
Following the dynamic fixture example from most of the rail’s books and tutorials available out there… you would be tempted to add something like this to the top of your fixture. ( this example is particularly relevant to the users fixture for use with the LoginEngine)
<% SALT = “nacl” %>
and then you would use this […]
I spent some time yesterday trying this out.
I am writing it here to save your time.
Here is the functional test’s code to check for a hyperlink with text “Back to Index” which links to the index action of the controller being tested.
link = find_tag :tag => “a”, :content =>”Back to Inbox”
assert_equal @controller.url_for(:action => ‘index’, […]
Ajaxified Drag Drop Tree in RoR
CASE STUDY
I m providing a very generalized use case where the tree fits in a good position. Here it is…
Consider a model Item, a controller Items. Item model is using a fabulous acts_as_tree and we are going to put a seed for Item to grow it in an ajax tree […]
