Displaying 20 results from an estimated 2000 matches similar to: "(no subject)"
2006 Mar 02
0
Help with this comparison and loop
I am sending this information:
<%= observe_field "resource_focus_id",
:frequency => 0.25,
:url => { :action => :add_sub_focus},
:with => "''focus_id=''+ value +
''&sf_id=#{@resource.sub_focus_id}''",
:update => "resource_sub_focus_id" %>
Which turns out to be:
2006 Feb 13
0
(no subject)
Here is my db setup:
focus
id
name
sub_focus
id
focus_id
name
I have a select menu for focus and want to fill another select menu for
sub_focus (with AJAX) depending on what the focus is can someone point
me in the right direction?
Thanks.
Seth Buntin
-------------- next part --------------
An HTML attachment was
2006 Feb 13
7
Concatenation
I have this:
<%= @tech_standard.category + " " + @tech_standard.point + "." +
@tech_standard.subpoint %>
I get this error:
cannot convert Fixnum into String
point and subpoint are number.
How do I concatenate those values?
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology Education
Murray State University
--------------
2006 Feb 21
4
Error, got String?
I am getting this error.
ActiveRecord::AssociationTypeMismatch in Resources#create
Focus expected, got String
I have a select menu named resource[focus]. My focus (belongs_to
:resources) table has a one-to-many relationship with the resources
(has_one :focus) table (A resource will have only one focus but one
focus will have many resources). I assume this error means that the
focus is
2006 Feb 21
7
Validation issues
I have a form. Everything submits into the database if I don''t have any
validation rules. When I put these rules:
validates_uniqueness_of :title, :message => "already exists in
database"
validates_presence_of :title
I get this error (which seems weird because I am not validating against
that):
You have a nil object when you didn''t expect it!
You
2006 Mar 01
1
Accessing AJAX''ed elements via javascript
Is there a way to get access (via javascript) the page elements that
were populated with AJAX (observe_field)? If you look at my source I
have:
<select name="resource[sub_focus_id]"
id="resource_sub_focus_id"></select>
But the actual select menu is filled with options because I used the
observe_field to fill in the options. Now I want to be able to access
2006 Feb 13
8
Anyone have Ruby for IIS installer?
Erwin:
We found it''s not worth the time to do this. It won''t work reliably.
You''re in for a world of hurt. We''ve given up on the idea after several
months of trying (and some great feedback from this list). There are
some on this list who claim to have gotten it to work, but that might
just be luck.
We''re now using Apache on a higher port, and using
2006 Mar 01
3
Form helpers and overloaded methods - help!
Can someone explain why form helpers appear to bypass any model methods
I override for fields that are bound to database fields? It would be
great if someone could tell me how to force the form field, etc to call
the method instead of looking at the database / attributes collection.
Let''s say I have a column called ''price'' in my database table "books"
2006 Jan 11
8
Oracle and Rails seems really slow.... In development
I''m just looking into how to connect to Oracle using Rails. I''ve got
everything connecting and working as it should.
I have a Users table in Oracle:
create_table "users", :force => true do |t|
t.column "username", :string
t.column "created_on", :datetime
t.column "email", :string
t.column "note", :text
2006 Feb 22
15
Fixtures and Relationships
In my daily development, I migrate back and forth between versions, and
often do: rake load_fixtures...
... in order to populate my development database with fun data.
Now, with any HABTM relationship, there are failures, as there is no way to
say "which" fixtures to load first.
Within an actual functional or unit test case, you could simply load them in
the proper order, but
2006 Mar 06
5
Dreamhost subscription?
I''m thinking about signing up with DreamHost for the base Level 1 $9.95
plan. Does anyone think that''s a bad idea?
I''d like to know others thoughts, and who they recommend for RoR
hosting?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jan 19
4
A simple scaffolding question
All,
When I generate scaffolding on my model, it doesn''t display all the
fields in the create and edit views. It populates the views with
text/char and date types, but omits any integer fields. Is this
normal behavior or a bug?
Thanks!
-Nick
2006 Feb 24
8
RoR meets .net *cringe*
It was a miserable failure for us. Your best bet is to run on Linux.
> 1. Has anyone done any benchmarks with it? Is there any reason this
> couldn''t be viable for production loads? (feel free to speculate if
you
> haven''t)
When it finally worked, after two weeks of trial and error (and we can''t
reproduce it again) it performs poorly under IIS. It looks
2006 Mar 20
24
Newbie Question about Custom Classes
Sorry if this is a complete newbish question, but I''m trying to wrap
my head around creating custom classes in my rails webapp. I''m
normally a Java developer, but I figured I''d give RoR a try and see
how I like it, and whether it would be useful for production use with
a new client.
Anyways, what are the best practices for custom classes? Where and/or
how do I create
2006 Jan 03
22
Large-scale application
Hi fellow railers!
We are discussing the possibility of writing a very large application in
Rails. By "very large" I mean a framework that would contain a few
hundred smaller applications that would need to talk to one big database
and have to share some common session data I''d like to get some
feedback on some possible ways of doing the following:
The application would
2005 Dec 16
25
I Would Really Like to Try RoR but...
it''s been a nightmare trying to set it up. I keep getting a an
Application Error message when I try to navigate to a url which should
be taken care of by my newly created controllers. For instance, I
wanted to test RoR out so I created a MyTest controller which should
allow me to navigate something like:
http://localhost/rubytest/MyTest
but it does not. I have no problem getting
2006 Mar 01
2
Help with Many-To-Many insert
I am having issues with a many-to-many table. The table relates
resources to standards, but in my resources table has one-to-many
relationships so those also appear in my many-to-many table. I am
trying to insert into the table via:
@resource.core_contents << CoreContent.find(params[:core_content_ids])
But I get this error:
Mysql::Error: Duplicate entry
2006 Jan 11
8
Enterprise Rails Apps
Is there a place I can get a list of "enterprise" Rails applications?
Apparently, even though I''ve looked at the wiki and cited the examples
there, there are some at my organization who still can''t find proof that
Rails is usable in an enterprise setting.
Would you fine folks be able to tell me about some large-scale projects
that could be classified as
2006 Feb 10
3
RoR, Apache 2, FastCGI
I have everything working and I am really excited about learning Ruby
and Rails. But whenever I access my different defs in my controller it
takes ~ 5 seconds before they are returned. I am working locally so I
don''t know what the issue is.
System Details:
Windows XP
Apache 2.0.55
Ruby 1.8.2
Rails 1.0
Seth Buntin
Web Resources Coordinator
Kentucky Academy of Technology
2006 Feb 17
2
Helpers?
Would I use a helper for this situation?
I have a layout that is used over two controllers (admin and login).
Each controller has their own navigation. Can I do something like this?
<%= getNavigation("admin") %> or <%= getNavigation("login") %>
And return the navigation list depending on the string sent?
Seth Buntin
-------------- next part