similar to: change the model''s table name

Displaying 20 results from an estimated 1000 matches similar to: "change the model''s table name"

2005 Mar 09
8
How to set ''Return-Path'' in ActionMailer to avoid SPF failure?
I was wondering if there was any way to set the ''Return-Path'' of an email when using ActionMailer. Without the ability to set the ''Return-Path'' of an email, it is impossible to avoid being labeled as ''spam'' by many SMTP gateways if trying to send mail on another''s behalf. SPF doesn''t care about the
2005 Feb 05
4
Creating collections
I''m trying to create a form where a collection is created, using the example from the Rails 0.9.5 weblog posting: http://weblog.rubyonrails.com/archives/2005/01/26/rails-095-a-world-of- fixes-and-tweaks/ I''m having a bit of trouble. The controller currently looks like this: class StudentController < ApplicationController def new render_text @params.inspect
2006 May 04
5
create databases with rake
hi, is there a way to create the database (say development and or production) specified in database.yml with rake? thanks, Enrico -- "The only thing necessary for the triumph of evil is for good men to do nothing" Edmund Burke
2005 Mar 07
3
exclude an attribute from save
Hi, I''ve used .save to save the attributes, but on my table there is an autoincrementing id (not the primary key) that doesn''t need to be inserted... but save try to INSERT it anyway... is there a way to avoid save from acting this way or to whisper him to be more polite this time? ;) Thanks, Enrico -- "The only thing necessary for the triumph of evil is for good men to do
2005 Jun 21
3
dynarch calendar problem when used with ajax
I''ve got a partial with a form using the dynarch calendar (calendar_field behavior). Working. Now I render this partial from the action specified in to a link_to_remote. Now when I click the calendar it''s not showed anymore. theese lines: <%= stylesheet_link_tag ''calendar-system.css'' %> <%= javascript_include_tag ''calendar'',
2006 May 12
4
validates_uniqueness_of with a condition
Hi, I need to check the uniqueness of an attribute (a doc number) using a condition (a specific year), I''ve found validates_uniqueness_of :number, but I need to tell it I just want to check a specific year. I''ve found :scope but I haven''t really understood it''s meaning, Can I scope on a specific year? Thanks, Enrico -- "The only thing necessary for the
2006 Apr 20
3
how to use own classes properly
I am using rails just for few days Now i am developing traffic reports for my local network I had to build database queries manualy becouse ActiveRecord does not support selection of multiple sum() fields in silgle query Then i wrote special class QueryBuilder which makes query string from the given conditions (group by, where, additinal fields to select etc). I put QueryBuilder just after my
2006 Feb 04
2
file_column path problem grouping controllers in to modules
Hey there, good job with the file_column thing, but I''m experiencing a problem I didn''t found about. I''m grouping controllers in to modules (like Admin::Category Admin:Item) and: url_for_file_column("dettaglio", "picture_url") return this search path: src="/detail/picture_url/development/5/dark.jpg" there''s a development coming from
2006 Feb 10
2
file column within link_to
Hi, I correctly see: image_tag url_for_file_column("element", "picture_url", "medium") now I need to make it a link so I''ve used: <%= link_to(image_tag url_for_file_column("element", "picture_url", "medium"), {:controller => "products", :action => "sec_level", :level_id => @element.id}) unless
2005 Mar 02
1
postgresql date
If I select my date column from the pgadmin I see that in the ddmmyyyy form, I''ve specified so in the postgresql config. When I query from rails I get the date in yyyymmdd someone knows why? Thanks Enrico -- "The only thing necessary for the triumph of evil is for good men to do nothing" Edmund Burke
2006 May 04
5
How to upload only jpeg & gif & png images into public/images using rubyonrails
Hello iam new to rubyonrails. Please any one help me out in "How to upload only jpeg & gif & png images into public/images using rubyonrails" Thanks in Advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060504/33a17ad2/attachment.html
2013 May 22
19
Install vTPM on Xen-4.2.2
Hi, I‘m trying to install vTPM based on Xen-4.2.2, linux-kernel 3.9.1 (Dom0) and TPM emulator. However, I cannot find the TPM backed driver in this version of Dom0 linux kernel. There is no CONFIG_XEN_TPMDEV_BACKEND in the kernel config file. The config file for Dom0 is attached. Maybe it provides some useful information. So, how to install a Xen TPM backend driver in the Dom0 linux-kernel.
2012 Mar 21
4
Can not boot the OVMF
Hi Attilio I have updated to the upstream Xen and try to boot into OVMF bios. Instead of fetching the OVMF code from the git mirror, I just copy the OVMF bios to ovmf directory. I use the bios="ovmf" in the HVM config file. But, there is an error when I create the domain. root@gavin-laptop:~# xl create hvm_ubuntu.hvm Parsing config file /root/hvm_ubuntu.hvm WARNING: specifying
2012 May 11
15
Errors of doing "make install-tools" with xen-4.2-unstable?
Hi, When I do the "make install-tools" with xen-4.2-unstable, there are some errors about "warn_unused_result". Is it the error in code or the error in the compiling environment? Thank you so much. gcc -O1 -fno-omit-frame-pointer -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .tapdisk-queue.o.d
2011 Jul 23
9
[PATCH] Replace bios_relocate hook with bios_load hook in hvmloader
Hi, These set of patches are affected by replacing bios_relocate hook with bios_load hook in hvmloader. The patches for code files config.h and hvmloader.c also contains part of the contents of Enabling UEFI BIOS(OVMF) support in Xen-unstable HVM. Is there any problem with these patches? Thank you very much. # HG changeset patch # User gbtju85@gmail.com # Replace bios_relocate hook with
2006 Feb 07
5
OCI adapter slowdown on dictionary access
Hi, after some experience with Rails on MySQL databases I gave it a try on one of our larger Oracle database. I was facing a problem when Rails tried to detect the columns for a model/table. The appropriate statement ran about 1 min which led to a timeout. Our Oracle guru told me to analyze the SYSTEM schema. After that hadn''t helped, he said the only remaining chance is to use a
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 Jan 05
3
Remotely reboot SIP Phones ?
Hi, Can you give me some councils of remotely rebooting sip phones in asterisk server? How to configure sip_notify.conf and sip.conf? Kind regards, Guan ; Reboot Polycom Phone Event=>check-sync Content-Length=>0 ; Untested (Reboot Sipura Phone) Event=>resync Content-Length=>0 ; Untested (Reboot GrandStream Phone) Event=>sys-control ; Untested (Reboot Cisco Phone)
2006 May 03
2
cannot use fanny in package cluster (PR#8830)
Full_Name: Guan-Hua Huang Version: 2.0.1 OS: Linux Submission from: (NULL) (140.113.114.123) I install the package cluster by using install.packages("cluster"). After install it, it runs fine for function clara, but it does not work for function fanny. I did the following things: library(cluster) set.seed(21) x <- rbind(cbind(rnorm(10, 0, 0.5), rnorm(10, 0, 0.5)),
2006 Jan 09
6
Nil column results, possible to ignore?
For a table "clients" there are city, state, and zip fields. However, for some clients we only have a state with no actual address. The following code throws a "You have a nil object" error when outputting my client list. Is there a way around this, short of writing a specific case for each possibility? &lt;%= client.city + '', '' + client.state +