Displaying 8 results from an estimated 8 matches for "michaellatta".
2007 May 27
3
Mac setup issue
I just installed an updated set of tools (ruby, rails, etc) under my
home directory for my mac 10.4, since I did not want to disturb the
pre-installed environment in case something in the system relies on
that. The problem I have is that the rake command is still using the
old stack rather than the new one, even though the new rake is there.
I presume the ''rake'' command itself
2007 Mar 28
4
Disabling ActiveRecord "type" column subclassing
Hi! I have a legacy table that has a column named "type" and need to
remove this automatic subclassing by ActiveRecord. The api pages are
vague about this, and I tried
self.inheritance_column = "xtype"
which seemed to get me half-way. In the validate_on_create method, the
value of self.type was my model Class name.
How would you disable this feature?
--
Posted via
2007 Jun 15
2
Why does db:schema:dump change float to double ?
I have tables with double as their field''s datatype. When I ran
db:schema:dump, Rails changed all of these double to float.
I would like to know why, and if there is anyway I could preserve the
datatype.
Thanks a lot,
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2007 May 30
2
newb trying to figure out ActiveRecord relationships
3 tables. item, brand, commercial
item
--------
id
name
brand_id
name
brand
---------
id
name
commercial
----------
id
item_id
The idea is that a commercial will have one item.
each item will have brand.
and a brand may have zero to many items.
I can''t figure out how to make the relationships for my models.
Eventually, i''d like to be able to show a brand name from a
2007 Apr 13
2
inplace editor and textarea
Hi,
I have an inplace editor and I can access the innerHTML value of the
created form. However the innerHTML gives "<textarea>....</textarea>
..."
How can I access the textarea value? I tried to do
innerHTML.textarea.value but it didn''t work. Any ideas will be
appreciated.
Thanks,
Joe
--
Posted via http://www.ruby-forum.com/.
2007 May 03
2
Multiple Update Actions that are Relatively the same
Hi there,
I have 2 actions that are rather identical:
# Put /account/you/update_password
def update_password
@user = current :user
respond_to do |format|
if @user.update_attributes(params[:user])
format.html {redirect_to account_url}
else
format.html {render :action => "edit_password"}
end
end
end
# PUT /account/you
# Update
2007 Jun 13
1
seleniumrc_fu initial test issue
I have the seleniumrc_fu plugin installed and setup according to the
instructions, and can run the selenium:test task if there are no test
cases. My first test case simply does an open_home_page to verify
that things are working at all. Unfortuniately there seems to be an
issue with even this simple a test case. The following suggests that
there is an issue with the getNewBrowserSession
2007 May 28
5
CTI in ActiveRecord
I search an plugin or gem, but don''t find nothing satisfactory. I
believe to be stranger a technology that nails the DRY, have that create
you vary equal tables, instead of using inheritance.
Exists an soluction for this? I want a solution similar to this:
create_table :people |t| do
t.column :name
t.column :address
end
create_table :customer |t| do
t.column :person_id