Displaying 20 results from an estimated 11000 matches similar to: "taking input"
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
2006 Jul 04
13
NewBie question
Hi,
I m very new to Ruby.
I bought a book "Ruby on Rails" and I think I understand some concepts.
My question is :
Is there a way to not use "Cookies" or "Sessions Variables" to keep some
information about the user.
I ask this question because I would like to prevent some cases where the
user browser won''t accept cookies.
I m from Asp 3.0, and I
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 03
2
rjs renders string or partial but not template or action
Hi,
I have an rjs file. I only have one controller called called front. I
have views called "new_title.rhtml" and "_new_title.rhtml"
These work
page.replace_html ''title'', ''new title''
page.replace_html ''title'', :partial => ''new_title''
page.replace_html ''title'',
2006 May 19
12
How to build a server
Hi,
I''ve been learning about building Rails apps for about 8 months but I
don''t really know how servers work or how to build a server. I have an
old 450 GHz Pentium computer I can play with. Since I use OS X, I was
thinking about installing a BSD system and trying to make a
MySQL/Rails server. That is about all I know about servers.
How does a server in my house get connected
2006 Jul 10
3
WEBrick start problem
Following is the error I get when I run ''\root\ ruby script\server''
The server does not starts.
Any help !?!
------------------------------
=> Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:275:
warning: already initialized constant KNOWN_OPTIONS
c:/ruby/lib/ruby/gems/1.8/gems/xml-simple-1.0.8/lib/xmlsimple.rb:280:
warning: already
2006 Jul 13
2
Getting data from the select menu
I am using a select menu to allow people to pick an item and be taken to
a new page containing that item''s data. Pretty straightforward stuff.
Except that I cannot quite figure out how to do this in Rails.
I do not understand how to grab the variable from the select menu.
Any suggestions?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 13
1
what does the ''select(x,y,w) function/command do in Rails?
Hello there, I''m new with Ruby and I''m trying to develop a web app. I''m
following an example from the book and they used ''select( )'' with three
parameters...what exactly does ''select ( )'' do? I''m trying to have a
scroll down button that will let me select one of the options. Is there
another way to accomplish this?
I
2006 Jul 17
1
Uploading data
Hi everybody,
I''m new with Ruby on Rails and would like to know how to upload data
into my database from a batch file. I want users to specify a path to
their batch file and then upload from a path box. Does anybody know how
to do this?
--
Posted via http://www.ruby-forum.com/.
2006 Feb 22
15
Fixtures and Relationships
In my daily development, I migrate back and forth between versions, and
often do: rake load_fixtures...
... in order to populate my development database with fun data.
Now, with any HABTM relationship, there are failures, as there is no way to
say "which" fixtures to load first.
Within an actual functional or unit test case, you could simply load them in
the proper order, but
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 Jun 18
13
Currency calculation
I''m thinking of experimenting with some currency conversion. However,
I''d like the conversions to be in synch with the current rates.
Anyone know (and this maybe out in left field) if there is some online
(perhaps xml) or other data stream I can connect with in my code to
output values based on user selection ?
TIA
Stuart
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",
2007 Oct 21
4
Input appreciated: R teaching idea + a way to improve R-wiki
Hi all,
I will be teaching a graduate-level course on R at CU Boulder next
semester. I have a teaching idea that might also help improve the R
wiki page... I wanted to know what you all thought of it and wanted to
solicit some advice about doing it.
During the latter part of the course, students will choose a topic of
interest (e.g., hierarchical linear modeling), and show how to achieve
it in
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
2009 May 14
4
Duplicates and duplicated
Hi everybody.
I want to identify not only duplicate number but also the original number
that has been duplicated.
Example:
x=c(1,2,3,4,4,5,6,7,8,9)
y=duplicated(x)
rbind(x,y)
gives:
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
x 1 2 3 4 4 5 6 7 8 9
y 0 0 0 0 1 0 0 0 0 0
i.e. the second 4 [,5] is a duplicate.
What I want is
2011 Sep 12
2
Automated generation of combinations
Hello,
I'd like to generate automatically all the possible combinations of a set of 8 variables (there are 535, too many to do it by hand). For example:
input: varA, varB, varC
output: varA+varB+varC
varA+varB
varA+varC
varB+varC
varA
varB
varC
Is there any function that produces this option?
Thank you
[[alternative
2015 Jan 16
3
wrong transfer of app packages using --backup
Dear All,
I have been seeing some strange behavior using rsync 3.1.1 on OSX with the 3 standard patches applied when using the --backup and --backup-Dir options.
This works as expected on 3.0.9, moving any files on dest that are not on source to the backup folder. If no changes then the backup folder is not even created.
-aHAXN --fileflags --force-change --protect-decmpfs ?delete --backup
2011 Jan 11
2
IE6 install problem
Hi,
Thank you in advance for your help from someone who has very little computer knowledge....
IE6 doesn't install....the following is as far as it goes....please tell me what I have to do to get it going....
Oh, I was able to install IE7 but it doesn't connect.
Thanks again. Cheryl
11-01-05 8:15:36 AM SyncServer[3280] [110f40] |SyncServer|Warning| Refreshing watchdog because of a
2007 Aug 23
4
Idiomatic way to do a non-database Enumeration?
I have a class which stores as one of its attributes a day of the week
as an integer (0-6, 0=Sunday, standard UNIXy values). I want,
obviously, the views to show the weekday name and the forms to provide
a drop-down with the weekday names. Essentially it''s a vrtual
attribute whose value is the localized weekday name, which maps to the
integer value that''s actually stored.