Displaying 20 results from an estimated 2000 matches similar to: "creating a select box"
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 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 Feb 19
8
select, first option empty value?
using the below:
<%= select(''project'', ''project_type_id'', @project_types.collect {|x|
[x.name,x.id]}, {:include_blank => true}) %>
but i''d like that first option to have something like "select project
type" with an empty value?
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 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 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select
field, such as
<%= collection_select("job", "client_id" , @clients, "id", "name") %>
with onChange="xxx"
Anyone know how to make this work?
Thank you,
Scott
--
Posted via http://www.ruby-forum.com/.
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 Jul 07
3
dynamically updating a listbox from another listbox
Hi,
I would like to be able to dynamically (without reloading the page)
change the values from one listbox when a user select items from another
listbox. I have a model ''Sector'' which has_many ''levels'' (and of cours,
''Level'' beyong_to ''sector''). I want to show the user two listboxes with
the sectors and levels. But
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
2006 Jan 25
12
DRY in Models
I am building an app right now that needs to grant access to three
levels of members right now - each will have their own table in the DB.
When creating the add_user action I am converting the password into a
hashed password through the model.
The way I am doing this right now, I will inevitably end up with
repeated code in three different models. Is there a way I can define
this code in
2009 Jun 14
5
Partials views and instance variables go nil
Hi everyone!
Model: http://pastie.org/511290
Controller: http://pastie.org/511285
View new: http://pastie.org/511286
View _form: http://pastie.org/511284
When I hit submit button there''s an error for usuarios(users in
portuguese) instance. It does not seems to save usuarios even though it
seems to be posted by the form.
Error: http://pastie.org/511292
Need some help here guys plz
--
2006 Apr 26
6
get foreign key table data
Hi
I?m trying to bring across all related data.
My table clients has a foreign key field that stores the id of an
organization
How can I grab the details of the organization to use in the clients
show.rhtml file?
Thanks
Scott
--
Posted via http://www.ruby-forum.com/.