473,566 Members | 3,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ruby / Ruby on Rails Forum

Ruby programming language and Ruby On Rails Framework - Ask questions about ruby programming, objected oriented, functional, ruby on rails, classes, methods, test driven development, refactoring, models , controllers, views and more.
1
7,416
thread by: New Guy | last post Jan 26 '07 by: NewGuy
Newby question... When I try to create an array using this method... value = buffer = Array.new(10) {value} I get an array of references to the single instance of "value". But I want an array of unique objects. How should I be specifying this? Thanks...
1
7,247
thread by: akiko | last post Jul 5 '08 by: acoder
i am student and i must to do project about web app by Ruby on rails i can not do past upload file.i try looking code but i just meet upload file image. i want to code upload file that it must to filter (validate) when file is PDF or postscript.if you have code or you can tell me please help me. ps.i want to upload PDF and postscirpt file ...
1
4,837
thread by: robbx | last post Jul 25 '07 by: aneeshkb
Hy guys I got an error trying to install Rails on Windows XP /SP2 C:\rubydev\ruby>gem install rails --include-dependencies ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) getaddrinfo: no address associated with hostname.(SocketError) I have these Software Installed already: -- Apache Web Server -- MySQL 5.0
1
2,419
thread by: captainGalaxy | last post Apr 1 '07 by: jfranks214
Hi Guys I'm so new to this I'm still wrappedn in plastic. ( forget the perv jokes) I have been eveloping in a wide variety fo languages for a long time so programming is nothing new. What I don't quite understand is why use Ruby rather than ASP or PHP or Java Or is it merely an easy route into learning to program before going on to...
1
2,335
thread by: BenBronson | last post Jul 31 '07 by: beatTheDevil
Hello - As stated above, I'm new to Ruby and all programming. I'm trying to learn as much as I can, but continue to hit roadblocks. I borrows the Pickaxe from a friend, and have looked at a few online tutorials, including the one by Chris Pine. It seems that for someone brand new to programming, they skip over some things that leave me hanging...
1
3,602
thread by: donrawe42 | last post Sep 14 '07 by: improvcornartist
Hi, I'm trying to submit a for using remote function and Form.serialize, if I render the contents of the parameter in the controller all I see is . I understand that Form.serialize creates the object when the getHash option is set to true but I'm not sure how to access the data that should be in the object. Any suggestions would be greatly...
1
2,955
thread by: pplers | last post Sep 15 '07 by: pplers
# ruby install.rb config install.rb: entering config phase... ---> lib ---> lib/fox16 <--- lib/fox16 <--- lib ---> ext ---> ext/fox16 /usr/bin/ruby /home/my_username/Desktop/FXRuby-1.6.11/ext/fox16/extconf.rb can't find header files for ruby.
1
6,495
thread by: JackInDaBox | last post May 4 '08 by: modsaid
Hello, newbie here...I have acts_as_tree working with active scaffold. My problem is that it lists parents and children in the scaffold. For instance the database has: id | name | parent_id | 1 |Animal | null | 2 |Cat | 1 | 3 |Dog | 1 | 4 |Siamese | 2 | 5 |Collie | 3 ...
1
4,907
thread by: avitus | last post Jan 29 '08 by: bugQ
Hi - does anyone know of a good way of calculating an IRR (internal rate of return) from a (variable length) series of cash flows. I need it to be reasonably efficient. I know that it will have to be an iterative solution.
1
1,975
thread by: amartin99 | last post Dec 19 '07 by: improvcornartist
Hello Im a completely new to ROR and Im looking for some extremely basic information on getting started on programming with ruby on rails. Im unsure of the most basic things that seem to get glossed over on most pages, like simply getting started. I have downloaded and then installed a ruby live cd. It probably doesn't help that my...
1
1,880
thread by: suganyashanmugam | last post Jan 30 '08 by: improvcornartist
Hi guys, am new to ror. i cant able to connect ruby with mysql database. can u guide me plz.
1
2,080
thread by: kharry | last post Jun 24 '10 by: improvcornartist
Hi I have a .rb file with entries as below: ADMINLOGINBUTTON = "//input" MARKSINGLETRACKING = "//input" I need to use ADMINLOGINBUTTON, MARKSINGLETRACKING, etc and fetch the corresponding value like "//input", etc. could you please guide me on this. Thanks
1
3,025
thread by: dakshayini | last post Aug 23 '10 by: improvcornartist
Hello, I want to write the data to excel/excelx file.My problem is,i am using 'roo' gem where set_value/set/set_cell_values method cannot be accessed. Say if i use like this, oo = Openoffice.new("C:\\Book1.ods") oo.set_value(0,0,"Hello") I am getting an error, Method set_value is missing What alternative method i can use to...
1
2,585
thread by: dakshayini | last post Nov 1 '10 by: improvcornartist
The problem is, i have to add the controls dynamically in html/ruby html which should take the unique id for each controls. Eg: If i click on add button say,control should create the code as follows.. <input type ="text" name="text1" id="text1"> <input type ="text" name="text2" id="text2">... How can i achieve this?Please help.Its...
1
1,795
thread by: SSasidaran | last post Jan 8 '11 by: SSasidaran
Hi All, I want to use PHP function in ruby code. I want to pass ruby variables to php function. And can anyone say how to run call a php function in ruby model. Ruby Model class test < ActiveRecord::Base def sample a1 = "username"
1
3,069
thread by: littlemaster | last post Dec 23 '10 by: improvcornartist
I am having table in psql it has one field as integer array data type. From rails application I was not able to insert value in that filed. Example: Need to add multiple userid in the name field. create table users(name integer,id serial); a=10 obj-User.new
1
4,651
thread by: SSasidaran | last post Jan 17 '11 by: numberwhun
HI All, i am new to ROR i am writing Ruby code for calling API blogs i have written ruby code for creating a attachment xml by
1
3,003
thread by: stutib | last post Jan 17 '11 by: numberwhun
Hello all, I am building an ruby on rails application.I am using Rails 2.3.8 Ruby 1.9.1 Mysql 5.0 Win7 64 bit OS My problem is,very often i keep getting this message "Error: Ruby interpreter (CUI) 1.9.1 has stopped working" and my server gets crashed.Its not getting crashed on particular point.After refreshing the page,it will start...
1
7,283
thread by: Wiinie | last post May 16 '11 by: improvcornartist
Hi all, I am new bird using Ruby, I just occur the problem "uninitialized constant Object::Person (NameError)" can any experts help me? my code is class Person def initialize(fname, lname) @fname = fname
1
2,186
thread by: Wiinie | last post May 31 '11 by: improvcornartist
Hi, I am a new comer on Ruby on Rails I have no idea what i have made with this error def new @language = Language.new end
1
3,623
thread by: rotaryfreak | last post Jun 9 '11 by: improvcornartist
Hi, I'm new to ruby and i've been experimenting on different ways on how to do this, but sadly nothing is working. I would like to create a multi-dimensional hash table in which i can access my members so that the output looks like this key 1 some val some val some val some val key 2 some val some...
1
2,886
thread by: Wiinie | last post Jun 18 '11 by: Markus
hi all, I have an error "undefined method `each' for #<Picture:0x927dea0>" what is that mean? in my view <% @user.each do |p| %> <%= p.image %>
1
5,289
thread by: madita1212 | last post Nov 10 '15 by: madita1212
*curselection So I am very new to Ruby and Tk and I have a Problem, which solution I didn't find after hours of research: I have a directory which contains many projects. With the following code I insert the names of the existing projects into a Listbox: $projects = Dir.entries("#{Dir.pwd}/projects") $projects.each {|f| $list.insert...
1
5,721
thread by: Nikhil Korkali | last post Nov 25 '15 by: zmbd
class Client::CouponDunia end class CouponDuniaData::Client c = Client::CouponDunia.new #Define The Empty Array To get the record from Coupon Dunia category_arr = category_arr = c.all_categories.last @transaction_category = TransactionCategory.new #Loop For Categories that Will Come Across From Coupon Dunia
1
5,005
thread by: tejas85 | last post Dec 23 '20 by: tejas85
Is it public knowledge why treyarch only gives us 1 byte for the round counter? We were given a whole integer value in WaW, why dont they do it now?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.