Displaying 9 results from an estimated 9 matches for "datapanix".
2006 Mar 15
3
[login_generator] implementing login limits
I have a simple Rails app that I am close to deploying on
our intranet. The security model is "either you are an admin
or your are not," with the method of implementing this model
being done by the login_generator 1.1.0.
There is one account set up, ''admin'', with three of us
having the ability to logon with this username (i.e. we
know the password). I am looking to
2006 Mar 10
4
validation is giving me heartburn
this one is killing me. all i want to do is validate the format of
user-entered software versions. so in the model i have:
validates_format_of :version,
:message=>"Not valid version number."
:with=>/[0-9]\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}\.[0-9]{2}/
the form field is simply the scaffold form code:
<p><label
2006 Mar 29
0
freeze_gems broke my app
WinXP/ruby1.8.4/rails1.0. did a "rake freeze_gems" and got:
------
Freezing to the gems for Rails 1.0.0
rm -rf vendor/rails
mkdir -p vendor/rails
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume
2006 Feb 16
0
rescue_action_in_public in development environment?
hi,
i''m trying to implement rescue_action_in_public as a
catch-all to redirect to an error page when an
exception is thrown (actually, just for testing,
I''m rendering "ERROR"). However, putting
def render_action_in_public
render( :text=>"ERROR" )
end
in either a specific controller or even application.rb, has
no effect on the app redirecting on
2006 Feb 22
1
specifying m/d/y order in datetime_select
the date_select form helper has a neat little feature which lets you specify
the order of the month/day/year that is displayed on the form via the :order
parameter. i.e.
<%= date_select ''blah'', ''somedate'', :order=>[ :month, :day, :year ] %>
however, i don''t see a similar option for datetime_select. passing
an :order parameter is happily
2005 Jun 02
1
Populating Data on a Foreign Table
the scenario...
three tables, thusly:
widgets
-------
id
widget_color_id
widget_style_id
widget_colors
-------------
id
color
widget_style
------------
id
style
the data:
widgets
-------
1 2 1
2 1 3
3 3 2
widget_colors
-------------
1 blue
2 red
3 green
widget_styles
-------------
1 smooth
2 round
3 broken
so, putting the associations together, we have in widgets:
1 red smooth
2 blue
2006 Oct 20
0
Reserved words
Is there a more definitive list of reserved words
in Rails than the one at
http://wiki.rubyonrails.org/rails/pages/ReservedWords ?
While it''s nice to read war stories of Wiki users running into
these issues, it might be nicer to get a canonical,
using-these-variable-names-is-asking-for-trouble list from the
developers.
As an example, I had a model "Build" (as in a
software
2005 Dec 14
2
[UserEngine] Configuring minimal access without logins
Hi,
I''m playing around with the UserEngine for limiting access to my app and I like
what I see so far. One question, however, I''d like to be able to set it up so
that any user navigating to the site is automatically set as "anonymous" or
some such access level with minimal permissions, without having to login.
IOW, the login function should only be used by
2006 Jan 15
13
Hotlinking an entire row in an HTML table
Hi,
This seems simple but I cant get it to work... I have a table with
4 or 5 columns and 20-30 rows. I''d like to have the ability to click
anywhere in a particular row to fire an action, such as bringing up
a "Details" page for the clicked row. This would eliminate the need
to generate a "Details" link at the end of every row, which is what I
have now and looks