Displaying 20 results from an estimated 1000 matches similar to: "select, first option empty value?"
2006 Apr 25
3
select boxe
yop,
http://rubyonrails.org/api/classes/ActionView/Helpers/FormHelper.html
ici j''ai vu qu''on pouvait g?n?rer des ?l?ment d''un formulaire gr?ce des
m?thodes. Apres quelque petite recherches j''ai trouv? comment g?n?rer un
select
<%= select(''category'', ''category.id'', Category.find_all.collect {|category|
category.nom})
2006 Apr 24
4
creating a select box
Hi
trying to create a select box in _form.rhtml.
I have a table called organisations that contains fileds, 2 being ''id''
and ''name''
these are the fields I need to bring over to the clients _form.rhtml.
whats the best way of going about that??
2 ways i have seen suggested that I cant get to work
-@organisations = Organisation.find_all placed this in def new
2006 Apr 05
4
Development Mode on Dreamhost
Anyone know (or know where to point me to) to figure out how to force
Rails into development mode? I''d like to not have to kill dispatch.fcgi
everytime I make a change. My site is not live and I''m just doing
development and testing right now.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 17
15
Version 1.1.2 CHM Documentation File
I finally got around to compiling the Rails 1.1.2 Documentation into a
CHM file this morning.
You can download the file directly from here:
http://delynnberry.com/files/rails-documentation-1-1-2.chm.
Let me know if you encounter any problems with the file.
--
DeLynn Berry
delynn@gmail.com
http://delynnberry.com
2006 Nov 24
14
CHM Documentation for Rails 1.2.0 - RC1
Since the first release candidate of Rails 1.2.0 was announced
yesterday, I decided to update my CHM documentation file for this
release. You can find the updated file via my CHM Documentation
Project Page [1], or you can download the file directly from here:
http://delynnberry.com/assets/2006/11/24/rails-documentation-1-2-0-pre-release.chm.
[1] -
2006 Oct 16
6
Rails CHM Documentation - 1.1.6
Just a quick email to let those interested know that I''ve posted an
updated version of my CHM document that now has all the documentation
from the 1.1.6 release of Rails. You can read more about it here:
http://delynnberry.com/2006/10/16/rails-chm-documentation-version-1-1-6
I''m also planning on creating a pre-release version based on what is
currently available in Rails trunk.
2006 Feb 07
13
CHM Documentation for Rails Version 1.0
Just wanted to let everyone know that I just posted an updated CHM file that
contains documentation for Rails Version 1.0. You can read all about
it here<http://www.delynnberry.com/articles/2006/02/07/rails-chm-documentation-version-1-0>.
I plan to continue updating the CHM file as newer versions of Rails are
announced, but I also want to finish an article that includes a rake file
that will
2006 Jan 20
11
Userstamp Plugin
I''m pleased to announce a new plugin for Rails: Userstamp. You can read my
blog post at http://www.delynnberry.com/articles/2006/01/20/userstamp-plugin
and/or read all about it at the perminant page
http://www.delynnberry.com/pages/userstamp. Any comments or suggestions for
improvement are much appreciated.
--
DeLynn Berry
delynn@gmail.com
http://www.delynnberry.com
A dump of the Readme
2006 Mar 07
4
Controllers More Than One Sub-Directory Deep?
Does anyone know how to make Rails aware of controllers that might
exist in directories that exist deeper than one level under the
app/controllers directory? I initially figured just adding additional
scope information might do the trik (i.e. Tabs::Admin::OneController
or Admin::Tabs::OneController), but that does not seem to work.
I''m guessing that I can just manually add these
2006 Feb 09
30
why there is no automatic relationship discovery
When I explain RoR to someone I don''t have a convincing argument that
explains why everything is so automatic and transparent, but
relationships have to be encoded by hand in models. That shows I
don''t understand well that part of AR.
There''s the argument that says that not all databases offer metadata
about foreign keys, but the natural question then is that,
2006 Jun 02
4
Web app developed in WInXP want to run on Linux
Hi All,
I have developed a web application using RoR on Window-XP. Now my server
is on linux and want to get this running on linux machine. I tried
starting the server but it failed to boot in boot.rb at this line:
unless RUBY_PLATFORM =~ /mswin32/
require ''pathname''
root_path = Pathname.new(root_path).cleanpath(true).to_s
end
so I changed(even though the file says
2006 Jan 31
2
Problem generating CHM Rails doc
Hi,
I have problem generating chm file for the rails doc.
I''ve commaned the rdoc to generate the chm by:
rdoc -f chm -o chm_folder action* rails-*
It gave me the following error:
vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/controller.rb:3:15:
Expected class name or ''<<''. G
ot RubyToken::TkLT: "<"
By adding
2006 Jan 16
16
acts_as_authenticated current_user in a model?
What do I need to do to be able to use an acts_as_authenticated
current_user in a model?
Is there some sort of include or require I can do some where that would
allow this?
**********************************************************
Here is what I am trying to do:
**********************************************************
class Setting < ActiveRecord::Base
before_create :created_by_user #
2006 Mar 14
2
Where i can download docs for offline reference?
I have seen the testing doc or the FAQ on ROR site, but is there a zip
file for it?
2006 Mar 31
1
FreeBSD powered Rails sites
Hello,
If your operation depends on FreeBSD you should be aware there is
currently a funding request by the FreeBSD security officer.
I''m relaying this information because I know FreeBSD is an important
platform for Rails and I hope those of you who do depend on FreeBSD will
be willing to put some money forward for this valuable work to continue.
You can read about the request
2006 Mar 21
8
How to avoid multiple submits/posts?
Hello,
How do I prevent previously submitted form data from being reinserted into
the database when the user presses the browser''s Refresh button?
On Aughey''s advice in #irc I tried using `redirect_to'' a new `:action'' but
this approach doesn''t seems to work.
Any idea what might be wrong or how to tackle this problem?
Thanks for your help.
P.S.- I
2006 Feb 19
4
Multiple HABTM to one table
I have a class Player, and a class Game.
Game has two HABTM relationships to the Player table through seperate
relationship tables.
class Game < ActiveRecord::Base
has_and_belongs_to_many :players, :uniq => true
has_and_belongs_to_many :victors, :class_name => ''Player'', :uniq => true
end
When I add Player A to players, and Player B to victors, and save the
2006 Jun 09
1
Rails Plugins With Views
Howdy Kids,
I currently have a Rails component we use in our CMS to display some
items... Well, everyone keeps telling me that components are going out of
style and could be depracated sometime soon so I''ve been looking at writing
a plugin.
Does anyone have an example of a plugin that includes views? I''d love to
check one out to get an idea of how to structure my own plugin.
2006 Jan 20
11
HABTM relations
Hi,
I have 3 tables with HABTM relation.
USERS -> QUOTE_TO_USER <- QUOTES
Table QUOTE_TO_USER has 3 attributes: quote_id, user_id, component.
I have a form where I can tie multiple users to QUOTE. This is easy one,
thru "user_ids" (@quote[:user_ids] = @params[:quote][:user_ids]).
In this form I have all users and I just check those I want to tie to
this quote, however
2006 Mar 31
6
Split Validations?
I have a single table that two people enter data into. Person A creates
the record and I need to specify certain required fields in his form.
Person B has a separate form and she fills in additional fields and I
need to specify that some of these are required.
Since the data is all in one table and since the validations are in the
model, won''t Rails complain when person A tries to