Displaying 6 results from an estimated 6 matches for "mindtonic".
2009 Feb 17
8
Converting Acts_As_Tree to Acts_As_Nested_Set
Hello,
I have a tree structure that needs to be converted into a nested set.
A great deal of work has already been done on the tree items, so
maintaining the integrity of the id''s is mandatory. However I need
the ability to access entire branches of the tree, which is what
Nested set does. Does anyone have any suggestions on how to
efficiently transfer the tree to the nested set and
2007 Aug 07
2
Making Validations Optional
Hello,
I am working with URL validations. I want this validation to be
optional if the data exists in the form submission. I have tried
several things.
validates_format_of :website,
:if => params[:organization][:website],
:with => /((http|https):\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]
{2,5}(([0-9]{1,5})?\/.*)?/,
:message => "Please enter a valid url"
Of
2010 May 04
2
Session Store Issues on Production Server
Hello,
I am using AuthLogic as my authentication gem. Everything is great on
my development server. When I upload to my passenger driven
production server at Dreamhost, the sessions are persisting
relentlessly. In other words, a user cannot log out. I have tried
implementing the Active Record session store and have changed
the :secret key in initializers/session_store.rb, but for some reason,
2010 Aug 18
2
Windowed Postgres Query
Hello. I have a database query I am trying to develop.
For the purpose of explanation, I am going to use a suit of playing
cards in ascending order as an example. The complete data set would
look like this: [2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A]
The WHERE clause would contain "suit = hearts" and the ORDER would be
"value ASC". I need to be able to page through the
2007 Sep 06
2
acts_as_ferret connection was refused
Hello,
I tried to install the acts_as_ferret plugin:
ruby script/plugin install
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret
but I get the response svn: Can''t connect to host
''projects.jkraemer.net'': connection refused.
Everything ok over there or do I need to use a different route?
Thanks for your help!
Jay Sanders
--
Posted via
2007 Jul 31
1
form_for - over riding the controller that generates the form
Hello,
I am trying to install my login and search forms as default parts of
the layout. This is the code I am using:
<% form_for :user, :url => {:action => ''authenticate''} do |f| %>
<p>Username:<br /><%= f.text_field :username, :size => 30 %></p>
<p>Password:<br /><%= f.password_field :password, :size => 30