返回首页
当前位置: 主页>ruby>
  • Reading variables in a file 日期:2010-01-22 03:24:29 点击:0 好评:0

    I'm thinking of migrating from Fortran to Ruby. Do you think i should go ahead?? First problem i have. How to read a file with several fields? This means: Imagine a file: Peter4 1990 Sam 3 1980 Grac6 1991 I would like to read for each line:name, order...

  • Newby question 日期:2010-01-22 03:24:28 点击:0 好评:0

    Have a new job. I am creating dynamic(ajax) web pages that will update our databases. The DBs are on Linux. I have the AJAX built and on Linux. I am able to view my pages. Now I want to start back-ending my DB and was going to use RUBY. I have never u...

  • creating an array of unique objects 日期:2010-01-22 03:24:26 点击:0 好评:0

    Newby question... When I try to create an array using this method... value = [1, 2] buffer = Array.new(10) {value} I get an array of references to the single instance of...

  • Help w/ errors.add_to_base between controller and model 日期:2010-01-22 03:24:25 点击:0 好评:0

    Help w/ errors.add_to_base between controller and model Hello, I'm having trouble in routing some errors between model and controller. The errors produced in the controller (invite_controller.rb) are collected and spit out nicely in a flash[:validate]...

  • Question #1 日期:2010-01-22 03:24:24 点击:0 好评:0

    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...

  • eRuby and HTML 日期:2010-01-22 03:24:23 点击:0 好评:0

    I am using eRuby on a Linux server. I have my Web pages on the server and can access them. 1. I want to query my PostgreSQL DB. 2. Parse the data into an Array 3. Use eRuby to update my Web pages with the Array. Does any body out there have code I cou...

  • rss feeds in ruby on rails help needed 日期:2010-01-22 03:24:17 点击:0 好评:0

    I want to bring in external news sources using rss feeds in ruby on rails. I don't have tables in my database. How can i approach this problem. Thanks all for your valuable suggestions....

  • adding dynamic fields to a model ... 日期:2010-01-22 03:24:15 点击:0 好评:0

    Hi, here i describe my problem: mi application must allow 2 basic issues: first: the users may be able to create 'people' (this would be a model with a scaffold, and is not an issue, the problem comes with requierement #2) second: the users should be...

  • using acts_as_ferret in persian language 日期:2010-01-22 03:24:14 点击:0 好评:0

    hi i installed ferret and acts_as_ferret successfully. but my Persian character search has not correct result. my code: acts_as_ferret :fields =...

  • Rails doesn't wait for script to finish 日期:2010-01-22 03:24:11 点击:0 好评:0

    I have a pretty long process (40 seconds) script. It is kicked off from one controller action from web browser. The problem is, the Rails does not wait until the process is done. It actually stops the process at about 5 seconds, and goes to the next s...

  • How to read content from an Excel file ans store in MySQL DB 日期:2010-01-22 03:24:10 点击:0 好评:0

    Hi, I need help on how to read an Excel file into my web application and store all content in the spreadsheet into a MuSQL DB. thanks,|||check out the parse excel lib to read in the excel file and than use active Record to store your data in your mode...

  • keyword search of documents on filesystem 日期:2010-01-22 03:24:09 点击:0 好评:0

    Does anyone know of a way to do keyword searches on documents in a filesystem with something similar to Oracle's Context package .. with mySQL/RoR's? I do this now with a Java/Oracle (Context) solution where the files are indexed and can be keyword se...

  • code for pressing 日期:2010-01-22 03:24:08 点击:0 好评:0

    When the user presses...

  • how to connect to an existing oracle DB 日期:2010-01-22 03:24:06 点击:0 好评:0

    how to connect to an existing oracle DB. I just wanted to generate the code ont he exisitng db so it will connect and detect everything, I do ntoo want to create a new db or fields and so on. Could somebody help me with this please....

  • any refer site for learning 日期:2010-01-22 03:24:04 点击:0 好评:0

    Hi, I want to learn Ruby/Rails so any body can help me out ??|||check here http://www.thescripts.com/forum/thread509677.html...

  • Using Selenium 日期:2010-01-22 03:24:04 点击:0 好评:0

    Hi All, I am very new to this selenium tool. Is there any one can just tell me in what way I can proceed so that it will be easy to learn this tool. Thanks....

  • Dynamic drop down list for country and states 日期:2010-01-22 03:24:02 点击:0 好评:0

    Hey everyone, Can anyone tell me how to make dynamice drop down lists for country and states? I have the models for country and states build and have the country drop down list worked, so how can I make the state list changes corressponding to the cha...

  • Gem installation Problem / Controller generation problem 日期:2010-01-22 03:24:01 点击:0 好评:0

    I am new to ROR. I Have ruby and instant rails installed in my system(I am using Windows). I have created an application 'railslist' [command i used:- c:\development\rails railslist ] But when I tried to generate a controller [ c:\development\railslis...

  • flash communication server 日期:2010-01-22 03:24:00 点击:0 好评:0

    hi , i am trying to implement a functionality where in we need to record a audio using microphone . i believe...

  • Google map and scaffolding 日期:2010-01-22 03:23:59 点击:0 好评:0

    Hi. I've been trying to play with this for a while now but I haven't seemed to get it to work. I have a admin controller, which is scaffolded, to input the lat and long along with info. I have a restaurant controller that will display the map with the...

  • Restaurants Google 日期:2010-01-22 03:23:56 点击:0 好评:0

    Hi. I've been trying to play with this for a while now but I haven't seemed to get it to work. I have a admin controller, which is scaffolded, to input the lat and long along with info. I have a restaurant controller that will display the map with the...

  • Problems with Rails Installation 日期:2010-01-22 03:23:55 点击:0 好评:0

    Hy guys I got an error trying to install Rails on Windows XP /SP2 C:\rubydev\ruby...

  • Nuby to Ruby (and all programming) 日期:2010-01-22 03:23:54 点击:0 好评:0

    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 see...

  • Ruby regex for removing C/Java-style /* ... */ comments 日期:2010-01-22 03:23:53 点击:0 好评:0

    Hey guys, As the title says I'm trying to make a regular expression (regex/regexp) for use in removing the comments from code. In this case, this particular regex is meant to match /* ... */ comments. I'm using Ruby v.1.8.6 Here's my regex: Expand|Sel...

  • New to Ruby/Rails 日期:2010-01-22 03:23:52 点击:0 好评:0

    Hello, I am new to this and have run into a problem. I have edited a column in MySql and I can see that it works fine. The problem I have is I need to refresh the view (hope thats the right term) to show the change. I have looked and come up with: Exp...

  • date_select 日期:2010-01-22 03:23:50 点击:0 好评:0

    can i know the reasone for this exception, 1 error(s) on assignment of multiparameter attributes..... when we use a date_select....................

推荐内容