Displaying 20 results from an estimated 2000 matches similar to: "Newbie Formating output"
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 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
2007 Apr 15
1
help:How to set default value for a column use of migration?
hi,all..
Here i want to use of migration to create a table and set a defult
value for a column..but i cant''t finished..
mycode:
class CreateMessages < ActiveRecord::Migration
def self.up
create_table :messages do |t|
t.column :name, :string
t.column :content, :text
t.column :posttime, :datetime, :default => "now()"
end
end
def
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.
2002 Sep 27
3
Retaining regularly used add-ons
Hi everyone,
How might I go about configuring R to keep
add-on packages loaded from session to session?
Is this undesireable for some reason?
At present, I keep a file called "pckgs.txt" in my
working directory with, e.g.,
library(gnlm)
library(Hmisc)
...
and then type source("add-ons.txt") every time I start
a new session. I suspect there's a more elegant way
to hold
2006 Aug 17
4
using time_ago_in_words() in a controller?
I''m getting this error when I try to update a list using ajax after
submitting some data:
undefined method `time_ago_in_words'' for #<IdeaController:0x3a38ae8>
the LOC is this:
render_text "<li>" + @params[:idea][:title] + "<br />by " +
@params[:idea][:author] + " | " & time_ago_in_words(Time.now) & " ago |
" +
2008 May 20
2
DateHelpers .. don' display.. ?
HI
I don''t understand what happen ..
if I use the script/console :
>> include ActionView::Helpers::DateHelper
=> Object
>> include GLoc
=> Object
>> time_ago_in_words(Time.now, include_seconds = false)
=> "moins d''une minute"
I get the correct answer..
but I I write in my view
<%= time_ago_in_words(Time.now, include_seconds = false)
2007 Feb 21
2
date helper bug?
I''ve found an issue when trying to use the time_ago_in_words and
distance_of_time_in_words from action view''s date_helper.rb
Using SQL Server, I have a datetime column that gets returned as:
"2007/02/21 09:54:00". When I pass this to time_ago_in_words (which
just passes on to distance_of_time_in_words) it miscalculates the
difference as "9 hours" (...um yeah,
2017 Oct 09
2
Incluir símbolo matemático en data frame
Muchas gracias Jesús,
Por lo que veo hay que hacer una columna diferente para los símbolos, tal
como sugiere Carlos. No hay forma de ubicarlos en el mismo string,
acompañando al número?
Manuel
El 9 de octubre de 2017, 8:52, Jesús Para Fernández <
j.para.fernandez en hotmail.com> escribió:
> Con
>
> print("\u2265")
>
>
> lo consigues.
>
> Aqui tienes
2017 Oct 09
2
Incluir símbolo matemático en data frame
Muchas gracias Carlos.
Pero eso haría que el signo se muestre tal como se deba mostrar , es decir:
?
Manuel
El 9 de octubre de 2017, 1:46, Carlos Ortega <cof en qualityexcellence.es>
escribió:
> Puedes incluir estos signos en una columna nueva antes de cada una de las
> columnas numéricas.
> Que el data.frame tuviera esta pinta...
>
> Signo_1, Col_1, Signo_2, Col_2,
2008 Oct 11
1
Re: time_ago_in_words is off by a day
Look at your 1.day.from_now and see if it''s like this:
Sun, 12 Oct 2008 02:45:42 UTC +00:00
If you also have the "UTC +00:00", it means that you timezone is the
GMT (and I think that it isn''t your real timezone). For example, my
timezone is 3 hours after the GMT, so the right timezone would be
something like this:
Sat Oct 11 23:48:41 -0300 2008
At your
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
2010 Nov 25
3
Is there an implementation for "URL Encoding" (/format) in R?
Hello all,
I would like some R function that can translate a string to a "URL encoding"
(see here: http://www.w3schools.com/tags/ref_urlencode.asp)
Is it implemented? (I wasn't able to find any reference to it)
Thanks,
Tal
----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili@gmail.com | 972-52-7275845
Read me:
2007 Jan 13
6
nice date function
Hi:
you know the way the google and this forum presents dates? How it''s
measure from the current date/time and presents nicely as "39 minutes
ago", 2 days ago, etc.? Has anyone done a gem or other library object
that I can get to do those types of dates?
Thanks so much in advance!
Mike
--
Posted via http://www.ruby-forum.com/.
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
2006 Aug 01
2
Date length in english plugin/built in?
Is there a plugin or built in function for converting a date interval
into the English equivalent? For example, "So and so posted this 45
minutes ago".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060801/e33b04d1/attachment.html
2014 Feb 13
1
Centos 5.10 Firefox 24.3.0 HTML OL
Firefox used to render
<ol type="a">
<li>.................</li>
as
a. ...............
Now it does not. The HTML 4.1 spec at
http://www.w3.org/TR/html401/struct/lists.html#type-values
says use CSS instead.
These
<ol type="a">
<ol type="A">
<ol type="i">
used to work in the Centos 5 supplied Firefox. Now OL
2003 Jun 15
1
Fitted probabilities from glmmPQL?
Hello All,
Specifying 'type = "response"' when using predict() on a
model fit using glm(...,family="binomial") returns fitted
probabilities.
Is it possible to get the same from a model object
fit using glmmPQL() ?
Thanks in advance,
Rob
_____________________________________________________
Rob Keefe Lab: (208) 885-5165
M.S. student