Displaying 20 results from an estimated 100 matches similar to: "Newbie Question about Ruby on rails---cant upload data"
2006 Jul 31
10
nothing uploads.....why? (newbie question)
Hi everybody,
I know this is an easy question but I don''t seem to see the solution.
I''m trying to have a user select a file so that my code can parse it and
populate the database with corresponding values. So far it seems like
uploads but nothing shows in my db. Can anybody give me a hand?
thanks
view:
h1>Importing Strings<h1>
2006 Aug 02
3
using migration--newbie
Hi all,
(I''m new with RoR) I''m using a migratio to import data into a database
but nothing is being happens. I''m importing strings from a parsed file.
this is what I have:
controller:
class UploadController < ApplicationController
def create
table = { }
params[:localized_string][:data].each_line do |line|
if line =~ /^\s* " (.*?) "
2006 Jul 25
1
newbie--how do i load a parsed file?
Hello there,
I''m new with ruby on rails and i don''t know how to load up a parsed file
into my database. I have my ruby script that parses it but don''t know
where to put my code, or how to combine it with view/model/controller.
this is what i have:
class Description < ActiveRecord::Base
def import_strings(a_file)
table = { }
2006 Jul 20
3
Newbie question-----Downloading a file and sending it to DB
Hi everyone,
I''m new with RoR and I''m working on a project that uploads information
(keys-values) from a file into a database. Here is the situation:
Somewhere in this file there is a strin-table such as the following:
"hello" = "hello world"
"sayHIgh" = "Saying hello to the world"
I have parsed the files with a ruby script in such a
2006 Jul 24
2
Newbie error message!
hello you all,
I''m new with Ruby on Rails. I''m developing an application. I got the
follwoign erro, can anybody give a hand?
ArgumentError in AdminController#import_strings
wrong number of arguments (0 for 1)
RAILS_ROOT: ./script/../config/..
Request
Parameters: {"commit"=>"Import",
2006 Jul 21
2
is there a debugger for Ruby?
Hi there,
I''m trying out Ruby on Rails for the first time. I want to know if
there is a good debugger for it. Does anybody know of one?
Thanks
--
Posted via http://www.ruby-forum.com/.
2006 Aug 02
4
is it possible to duplicate a key? --new
Im not very familiar with RoR so this question might be kind of silly.
I want to store strings from different lenguages in a database. I want
to have the key for the string in english be the ''key'' for all the
corresponding traslations of that string. For example:
(database columns)
lenguage-------------key-----------------value-----
english hello
2006 Jul 28
0
newbie----what''s wrong with my code
I know i''m new with ruby and i''ve been kind of confused with how rails
manages all the details. I want to store the key-values in different
columns on my database so that when I enter a eky, it gies me the
corresponding value. this is what i have:
my view:
<h1>Importing Strings<h1>
<%=error_messages_for("string_record")%>
<%=
2000 Nov 21
1
Exist the S 'dates' function in R?
Good afternoon,
I am a new user of the R application, and I don't know to much about the
lenguage.
I am trying a to run some of the S programs I have, and some of them are
crashing with the "dates" function. This function translate a character
string into a 'dates representation object'.
Do you know if there is a similar function in R?
Thank you very much for your help
2010 Aug 13
2
samba-3.5.4 + OpenLDAP
Hi folks,
I having a problem compiling Samba (Last Stable Version) from source on
a Debian fresh install.
Escenario:
OS: Debian Lenny 5 64 bits
Kernel: 2.6.26-2-amd64
Samba Version: 3.5.4
OpenLDAP Version: slapd_2.4.11-1
I tried this before and after the OpenLDAP installation and always have
the same error:
./configure --with-ldap --with-ldapsam
.
.
.
.
.
checking for LDAP support...
2009 Feb 03
0
lm function
Hi,
I do not use R lenguage for programming, hence Im trying to understand how
are specified the models below. I been reading some webpages with
information about the notation in the "lm" function, but havent understand
exactly what does the ":" do. Can some one give me an explenation of the
models below so I can replicate the results in other program.
#common intercept
2011 May 21
5
Wine development (program lenguage)
Hi, I'm learning about programing and I would like to know what language use wine to learn it.
2006 Jul 27
7
Newbie question---
I wrote a ruby script that parses a file into key-values like so:
class Parser
table = { }
IO.foreach(''Localizable.strings'') { |line|
if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x
table[ $1 ] = $2
end
}
end
I want to store the key-values in different colums on my database so
that when I enter a key, it gives me the corresponding value...how
2012 Aug 28
17
Tilde en RStudio
Estimados miembros de la lista,
Cómo hago para trabajar con tildes en RStudio.
En concreto, cuando cargo un archivo .txt o .csv en RStudio, no me reconoce
el tilde com tal y me coloca otros caracteres en su lugar.
¿Existe alguna solución?
Saludos,
Manuel
--
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
2012 Sep 20
4
Duda sobre internacionalización (i18n)
Hola a todos,
Tengo un programa que muestra unos informes generados con R (utilizando la
función cat()), y me gustaría que dichos informes le aparecieran al usuario
en el idioma que tenga definido según su LOCALE. ¿Cómo se podría hacer esto
con R?
En otros lenguajes lo que se hace es definir un diccionario con todas las
palabras que aparecen en los informes, y su traducción en los distintos
2006 Feb 12
7
ROR Recipes Beta: Why use taggings instead of tags_contacts? NoMethodError tag_with?
I have gotten acts_as_taggable to work for a test application as documented on taggable.rubyforge.org
I am following Chad''s excellent examples in ROR Recipes Beta book.
I have a few questions and hope that Chad or some other expert can help clarify them.
1. Why is the book suggesting to use taggings table instead of tags_contacts, as mentioned on taggable.rubyforge.org?
2000 Oct 27
6
GIS and R
Dear All,
Does anyone know of any GIS packages for R? I know that there are
GIS facilities for S-Plus (eg Arc Info), and am looking for freeware
equivalents.
Best wishes,
Sam Brown
-----------------------------------------------------------
Sam Brown sam at zoo.cam.ac.uk
Department of Zoology tel +44 1223 330933
Downing Street fax +44 1223 334466
2013 May 08
7
Si R viniera en el Diccionario...
Buenas tardes:
Aprovechando la vena lingüística que estamos demostrando tener últimamente, y en consonancia con labores de documentación que me ocupan en estos días, quiero consultaros acerca de cómo definir a R. Yo lo definiría como entorno más que como sistema estadístico, pero ¿realmente qué es lo más correcto si buscamos el rigor?.
Gracias.
Atte.- Eva
[[alternative HTML version deleted]]
2014 May 18
3
Utilizar scripts de PHP en R
Hola a todos, Estoy interesado en usar un Script de PHP desde R y me
gustaría saber si eso es posible y como se hace. Muchas gracias de antemano
por las respuestas.
[[alternative HTML version deleted]]
2003 Dec 01
0
No subject
apply to this (security=domain) case, since auth is via the PDC.
So, shouldn't winbind_lookup_sid() be succeeding. Should I be
trying to track the failure in that code?
In case it's helpful, ldd /usr/sbin/smbd shows:
libdl.so.2 => /usr/lib/libdl.so.2 (0x40017000)
libnsl.so.1 => /lib/libnsl.so.1 (0x4001a000)
libpam.so.0 => /lib/libpam.so.0 (0x40030000)
libc.so.6 =>