Displaying 20 results from an estimated 5000 matches similar to: "Rails auth systems using LDAP?"
2006 Feb 08
10
Writing activex controls and dlls in ruby.
Is it possible to write activex controls and windows DLLs in ruby? I
would like to have some of my logic be usable from VB (don''t ask why).
Thanks.
2006 May 09
11
model filter?
Hi All,
Is there a way to filter / modify the output of a model class before
it''s returned to controller/view that''s calling it?
Example: I have a field phone_number which I always want to preformat
using the number_to_phone() helper....
Any help is appriciated.
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 01
9
ajax doesn''t show at the right place
Hi,
I use link_to_remote to create a link to trigger an
ajax, things work fine, a new rhtml is created,
however, the newly created rhtml doesn''t replace my
old zone, it shows instead on top of my old
zone...Does someone know why???
my code is like
<table>
<tr><td colspan="2"><a href="#" onclick="new
Ajax.Updater(''zone1'',
2006 Jan 01
5
scaffold not working on Windows XP
Hello,
I did a fresh install of ruby182 and gem rails --include-dependencies
Now when I do:
rails receipts
cd receipts
ruby script\generate scaffold receipt receipt
rails does not create the views or controller.
What can I do?
Thanks
Frank
2006 Apr 22
4
How to supress field name in error message?
Hi
How do I supress the reporting of a field name in the full error
message? I want the error to be associated with the field so that the
.fieldWithErrors class is applied to the field but I don''t want it to
add the field name to the actual error message.
For example:
errors.add("occurs_on", "The date can''t be today!") unless occurs_on
!= Date.today
I
2005 Dec 20
6
Database Query on the fly Using Forms
I am a freshman when it comes to RoR, and I haven''t been able to figure
this out. I need to figure out how to query records in my database using
form check boxes (or radio buttons) then display them in that same
instance. What would this look?
I have been told that just putting a question mark after here,
:conditions => field = ?, but what would the argument look like?
Thanks in
2006 Feb 07
3
ActiveRecord for kirbybase?
I''ve found vague mentions of various attempts at creating an ActiveRecord adapter for the KirbyBase pure Ruby DBMS, but
nothing which looks like it''s actually working. Anyone know of such an adapter that is functional and available?
b
2006 Jan 30
5
url for image in css
Hi,
I''d like to call a background image for every item in a list. Something like
div#nav li.submenu {background: url(dropmenu.gif) 95% 50% no-repeat;}
the image is in public/images/dropmenu.gif
Thanks,
Peter
2006 Jun 03
2
looking for radrails devs
I just got an email update on a radrails bug that I submitted a while back...
Unfortunately, it''s just stupid spammers.
So, I tried to go to the radrails trac to delete the spam or at least report it, and their
trac is puking python errors (including environment information) all over the page! I
can''t seem to get to any pages with any contact info, so I''m trying
2006 May 08
4
Rubyy on rails hosting
All,
Could any of you recommend an out fit for hosting my rails app that is
not expensive with excellent support. Thanks
Patrick
2006 Jul 05
10
Scalable alternative to #find_all
Is there any scalable alternative to iterating all the records of a
certain model? #find_all seems to load everything into memory. With
500.000 records it will be a swap storm.
Pedro.
2006 Feb 12
9
CSS in Views
How can I link to a CSS file in one of my view files?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 24
14
engines
This page:
http://www.rails-engines.org/download
makes it sound like SVN is optional for using engines, but when I try to run the second
command ("ruby script/plugin install engines"), I get the NoMethodError on nil as
described in the second issue reported here:
http://www.rails-engines.org/wiki/pages/Engines+plugin%3A+Known+Issues
So, which is it? Do I have to have SVN installed
2005 Dec 14
3
why would an int column in a join table be a String class in model?
i''ve got an issue with integer columns in the database becoming strings in
the model and I''m not sure why this is happening. perhaps someone can
explain.
given the following setup (simplified for example)
tables:
users
----------
id - int
name - varchar(60)
roles
----------
id - int
name - varchar(60)
roles_users (join table)
----------
role_id - int
user_id - int
2006 Feb 17
2
validate uniqueness of two fields
I have Proposals and Members and Members can vote for a proposal only once.
So, I have "Vote belongs_to :member, :proposal", but to make sure a member only votes
once, I want to make sure that there isn''t a vote in the db with that member_id and
proposal_id. I can just put the appropriate find in a vote.valid? but I wanted to make
sure I wasn''t missing a nice rails
2006 Feb 03
6
Rails from the command line
I have controller that processes data in one table and puts results in
another. Now that its'' working, I would like to be able to run it from the
command line ( read: windows batch file). How can this be done?
It will be installed on a Windows box with InstantRails1.0, (if that
matters).
I will be doing more processes like this, so this is a good opportunity to
get it right.
--
Best
2006 May 11
7
Rails in Dr. Dobbs Journal ?
Hi,
I''ve read that Dr. Dobbs Journal''s last issue has a cover article about
Rails titled "Ruby On Rails - Java''s Successor?". Can''t find anything
about it in http://www.ddj.com
Does someone have the paper edition and can confirm that, and tell
how the article looks like, and so on.
Thanks,
-- Jean-Fran?ois.
--
? la renverse.
2006 Feb 27
8
Newbie question - Automatically update _form.rhtml?
Hi all, I''ve got an odd issue. I''m new to Ruby/Rails and have a bit of a
silly question. I''m following along with the nice little tutorial here,
to get an idea of the system:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3
However, I''m running into an issue where the author adds a new field in
his database, refreshes the browser and shows
2006 May 08
7
How to get difference between two dates in days???
Hi,
I want to calculate difference between Current date & previous date
(stored in database). The difference should be in days. Hhow to do
that??
PLs tell me.
Thanx in advance.
Prash
--
Posted via http://www.ruby-forum.com/.
2006 Mar 23
4
belongs_to more than one model
Suppose I have one table:
states
id
statename
And I have two other tables that contains states:
houses
id
color
state_id
places
id
place_name
state_id
How would my model relationships look like?
class State < ActiveRecord::Base
belongs_to house
belongs_to place
end
class House < ActiveRecord::Base
has_one state
end
class Place <