similar to: help:How to set default value for a column use of migration?

Displaying 20 results from an estimated 300 matches similar to: "help:How to set default value for a column use of migration?"

2008 May 26
11
doesn't create my guestbook
Hi, I''m having some trouble with my realtions (I think). I''m creating a guestbook with comments in ajax (the structure resembles the structure of a blog). So I''ve got a "flogs table" which keeps the "user_id" and the "id" of the flogs. This table. Then I''ve got a "guestbooks table" containing "id" of the
2006 Jul 14
5
Newbie Formating output
Hi, am a rails newbie. I had problems with 2 tasks i have created a guestbook app just to try out rails users sign guestbook by leaving name and message currently, the list action shows plain text like this: Joe Smith love your guestbook but i would like to add formating to the name field, say different colour, bold, and add time eg: Joe Smith (in red colour) wrote 5 days ago love your
2006 Mar 09
2
clarify
im learning rails and i got a error while writing a sample code. Script : ------- class GuestBookController < ActionController::Base def index @entry = GuestBook.find_all end def list_parameters params = request.parameters render :text=>"Parameters #{params}" end def list params = request.parameters @entry = GuestBook.new(params[:name])
2009 Sep 12
1
guestbook for centos 4 or 5 ???
does anyone have a very secure & reliable recommendation for a guestbook solution for virtual hosting on centos 4 or 5 ? - rh
2006 Apr 15
0
Component using
Hello all, I have a simple task. I need to create a guestbook component, and render it from the main application. The guestbook have the following controller actions: viewMessages - simply shows messages from model addMessage - generates form that accept message text, username, password. The form points to saveMessage action. saveMessage - receives data from addMessage action. On the main
2006 Jan 10
6
Can we cache user home pages?
Hi Railers, I am trying to create a simple application like a guest book which has users and uses sessions to keep track of which users are logged on. The user''s page is constructed after doing some SQL queries and the user clicks on another link and hits the back button I dont want to regenerate the whole page (which is what happens now) .So I want to use some kind of caching mechanism.
2006 May 24
0
Valid W3C XHTML Code?!
Hi there, i was just asking myself what i can do get my ruby site valid to the w3c specs. my biggest problem is the auto-generated html code of the link_to function which gives the form field an id value which includes an array. that rises the following error: Line 45 column 20: character "[" is not allowed in the value of attribute "id". <input
2006 May 13
7
Recognition Failure
I keep getting a Recognition failed for "/dispatch.fcgi" error. I search for a solution and the closest I came to finding one was someone saying "look at the Rewrite in .htaccess and you''ll be able to figure it out." Well, I can''t! If anyone could help, I would appreciate it. Thanks! Floyd -------------- next part -------------- An HTML attachment
2008 Jan 22
1
Cyrus-Imapd Sieve Unable to connect to server
Hi, Do you know if sieve implementation on cyrus-imapd package is working correctly ? When trying to connect to timsieved at localhost with sieveshell I'm getting the following error: $ sieveshell --user=al --authname=cyrus localhost connecting to localhost unable to connect to server at /usr/bin/sieveshell line 169 The configuration on /etc/cyrus.conf is by defult. Port 2000 is listening
2011 Feb 10
1
Re: nfs undercover
You must update your gaphic card driver. Yor sistem run defult graphic drver you must update graph.
2008 Jun 18
1
mod perl query
Dear All, I have recently installed centos 5 and working fine now i have a query with apache 1) does apache gets installed with mod perl with the defult install of centos 5 cause when i start up apache there is no mention of mod perl also httpd -l | egrep mod_perl prints nothing if mod perl is not install with installation of Centos how could i install apache with mod perl support
2008 Apr 29
1
Making new Ajax.Updater within a previous Ajax.Updater call
I have a button which calls a form via Ajax.Updater: <a href="javascript:void()" onclick="createMessage()">Create Message</ a> <script> function createMessage() { new Ajax.Updater( ''content'', ''message.php'', { method: ''post'' } ); } </script> This is the message.php file: <html> <head>
2008 Jul 24
4
Dividing by 0
I'm trying to calculate the percent change for a time-series variable. Basically the first several observations often look like this, x <- c(100, 0, 0, 150, 130, 0, 0, 200, 0) and then later in the life of the variable they're are generally no more 0's. So when I try to calculate the percent change from one observation to the next, I end up with a lot of NA/Nan/INF, and
2010 Jul 24
0
local polynomial with differnt kernal functions
Hi, R users   I need to use the function (locpoly) to fit a local poynomial regression model, The defult for kernal function is " normal" , but  I need to use different kernal functions such as :Uniform,Triangular,Epanechnikov,...... Could someone help me define these functions to fit local polynomial regression model?. Email:assaedi76@yahoo.com     Thanks alot [[alternative
2011 Jun 12
0
winefile can't create folder?
I use appication that manage it's out favorites folder by defult with winefile. Favorites folder (dir) placed in .wine/drive_c/users/kruvalig/Application\ Data/<myprogram>/Favorites/. My favorites folder is complex, and i want to have possibility to create subfolders there. When i try to create folder i get error message "Not yes implemented". How can i fast and simle use my
2008 Jun 06
2
Messy Cookies
It looks like everyone has tried to fix the cookies lately, and no-one managed to get it 100% correctly. The current implementation doesn''t set the path correctly, and you can''t use @cookies in a #service-overload. Qwzybug''s patch fixed only the sessions. Jenna''s patch won''t allow to set complex cookies (@cookies.key = {:path => "/path",
2001 Feb 27
1
using fmod in C code to be loaded into R
Dear People, I wrote the following bit of C code and (along with other bits) called it mycode.c, and compiled the file into a shared library to load into R, using R CMD SHLIB mycode.c. This was Ok, but when I tried to load this into R using dyn.load("mycode.so") I got the error > dyn.load("mycode.so") Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to
2005 Dec 28
1
segmetation fault
Hey, I don;t know if anyone has come across this error before... I am running R on the terminal of my MAC OS X 10.3.4 and I have written C code and compiled it using R CMD SHLIB mycode.c There were no problems in compiling so I now have mycode.o and mycode.so. I used dyn.load("mycode.so") and again, no problems. But when I try to use the code .C("mycode",x)
2018 Jan 24
2
Issue with concatenation of URL losing
Thank you for your help in advance. I am trying to pull some data back from a web service library(httr) sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode") result2 <- content(sample2) height <- result2$height[[1]] I would like to put by own latitude
2018 Jan 24
0
Issue with concatenation of URL losing
a) you need to read the help pages on the paste function... more likely you are looking for the paste0 function because extra spaces will most likely break the GET request format. b) quotes do not become "stuck" as \" ... that is a visual representation intended to clarify that that quote is not terminating the string but is actually part of it. If you want to see the contents