similar to: Newbie question---

Displaying 20 results from an estimated 500 matches similar to: "Newbie question---"

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 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 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")%> <%=
2006 Jul 17
6
taking input
Hi everybody, I''m pretty new with Ruby on Rails and I was hoping someone could help me out. I''m trying to take in data from a file and add it to my existing database. what I''m thinking is that I have to create a class that reads the data and copies it. I''m not sure how I will input the data into my database. I''m not sure if this approach is the
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 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 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a terrible time getting the models set up correctly. I have an order table that has a primary field named order_number. I have a name table with a primary of item_number. These two tables are liked by the item_number and the order_number, but not as you might think. If the order_number is 2500, then each entry in
2006 Aug 04
14
Printing an Order
Can Rails be used for printing an order in a store application that has arrived? -- Posted via http://www.ruby-forum.com/.
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.
2006 May 17
8
How to implement full-text search with OR just like google?
The current full-text search will return the AND collection results,for example,if we use Article.search("aa bb"),then the articles that include "aa" and "bb" in the fields will be returned,how to return the articles that include "aa" OR "bb" effectly? A stumb method is to setup two queries respectly and collect them together with remove the
2006 Jan 16
3
37s style modularization ?
Hello all, I remember and have lost a link to the blog on hints about 37s modularization of basecamp, backpack, etc. Anyone remeber this and can remind me of the link? Thanks ! -- ------------------------------ Forget the icing. Bake the cake! - the epicentered developer ------------------------------ Peter Fitzgibbons -------------- next part -------------- An HTML attachment was
2006 Feb 01
6
Little Ferret Problem
I''ve implemented Ferret, using the instructions here: http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails I get no errors in the application at all... however, I always get 0 results. I built an index off of some data, it exists in the index/ directory, the form submits find... etc... Just 0 results... all the time :) I confirmed the data from my models is being put
2006 May 23
13
acts_as_ferret 0.2.1 segfault
Hi, I just installed via script/plugin from the stable svn tag. (Revision 54) I''m running Rails 1.1.2 and have Ferret 0.9.3 (with C extensions. no compilation problems) I put together a simple model to test it and I''m getting a segfault. The model: class Report < ActiveRecord::Base acts_as_ferret :fields => [:title, :name] end $ script/console Loading development
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...
2006 Jan 16
2
ruby embedded code replacement for onclick in link?
Is there a ruby embedded code replacement for something like this? <a href="#" onclick="window.open(''http://192.168.78.12:3000/portfolio/show/<%= item.id %>'', ''test'', ''width=660, height=500,resizable=no'')"> <%= image_tag item.image_url, :size => ''200x150'' %></a> Thanks, Dan
2006 Jan 11
2
Table prefix
Hi everybody, is it possible to override standard RoR table nomination/pluralization to include a suffix? I have some tables with usr_ prefix but i would use "real" table name in model naming. For example i have table usr_accesslogs; in normal use i should create a model called UsrAccesslog instead Accesslog. Is it possible to do this?? Thanx Davide
2007 Apr 27
4
how to evaluate a dynamic variable?
Please help me evaluate a "dynamic variable" as show in the code snippet below. # regular variable a = c(1,2,3,4) # dynamic variable set at runtime DV = "a" eval(DV) --> a eval(eval(DV)) --> a # what I want something_goes_here(DV) --> 1,2,3,4 Can someone teach me how to do this? Thanks very much. - Bobby
2006 Feb 27
3
form questions
I have a very simple form that looks allows an input for an error code and then give the show page from the scaffolding if the error code is in the database and a notification on the list page, again from the scaffolding if not. Here''s the form: find.rhtml <h1>Find error</h1> <%= start_form_tag :action => ''search''%> <p><label
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
2006 Aug 04
4
cannot convert String into Integer
Hi, I''m trying to implement a live search that supports searching for multiple words. So for example, if I type "ruby rails" in the search field, I would return results that have either the word "ruby" in them or the word "rails" in them. However, this is just a background as to what the following code is trying to do and might not even be needed to fix