similar to: Newbie RoR question

Displaying 20 results from an estimated 400 matches similar to: "Newbie RoR question"

2005 Nov 06
1
R (2.2.0), R-DCOM and Delphi
In response to a few private e-mails, here a summary of using Delphi, R-DCOM and R 2.2.0 1) As Earl Glynn noted ( http://finzi.psych.upenn.edu/R/Rhelp02a/archive/50705.html ), there were a few paths specific to my installation in http://www.menne-biomed.de/download/RDComDelphi.zip leading to path errors on compilation. Hopefully, this has been corrected in the new zip file. 2) Always check if
2006 Jul 16
2
HELP - Save drop down list using "collection_select"
Each post has a single category, which I''m filling a drop down list by using this: #view <p><label for="post_type_id">Category</label><br /> <%= collection_select(:id, :type_id, Type.find(:all), :id, :category) %> </p> In my Post model I have a field called "type_id" which is to be filled by the id in the Type table upon
2009 Aug 11
2
Bugzilla not working following RHEL to CentOS migration
Dear listmates, I've recently moved a server from RHEL5 to CentOS 5.3 after it was decided not to renew the subscripton. Everything works beautifully except for Bugzilla, which throws MySQL errors. For example, the sanitycheck.cgi page says: # # # Bugzilla ? Sanity Check * Home * | New * | Search * | * | Reports * * | My Votes * | Preferences
2006 Sep 19
1
Adding percentage to Pie Charts (was (no subject))
Have you read the books by Cleveland? His experiments show that most people do better estimating things and comparing things on a linear scale rather than looking at angles and areas (also see http://biostat.mc.vanderbilt.edu/twiki/pub/Main/StatGraphCourse/graphsco urse.pdf) With a dot chart you can set the axis to go from 0 to the total of all groups (see the example I sent before, it could
2018 Sep 24
1
2 minor typos
Hello, I would like to report 2 very minor typos: 1. help file for package:base function:function The last sentence of the "Technical details" section reads: "This is not normally user-visible, but it indicated when functions are printed." Either "is" is missing ("but it is indicated") or "it" should be replaced by "is" ("but
2010 Jun 08
9
[Rails Heroku] Problem with saving object (on heroku hosting)
Hi All, I have some strange problem which appears only on heroku hosting 2.3.5 default stack (not on my local computer) I have some models. Here they are: class Contact < ActiveRecord::Base belongs_to :user belongs_to :type, :class_name => "ContactType", :foreign_key => "type_id" validates_presence_of :name, :on => :create, :message =>
2006 Mar 19
1
some strange behavior for has_many with STI
Hi all, I''m having some trouble with a has_many association on a table using the single table inheritance model that I''m hoping someone can help me with. The schema for the table is: CREATE TABLE `comments` ( `id` int(11) NOT NULL auto_increment, `user_id` int(11) default NULL, `type` varchar(20) NOT NULL default '''', `type_id` int(11) NOT NULL default
2005 Mar 09
10
Confused about extending the login generator ''user''
I''ve been using the login generator ''out of the box'' for simple authentication, and its been working fine. Now I want to extend it by simply adding ''type_id'' field which links to my ''user_types'' table, but I''m hitting: #<ActionController::SessionRestoreError: Session contained objects where the class definition
2004 Aug 06
3
Icecast is cool, but how about video?
Real Server is *not* an free product! It takes more than 500 Euro for a 50 Connections a time / Licence. Stefan Jacobi <p>----- Original Message ----- From: "Rob Burris" <robeb@keepthevibe.com> To: <icecast@xiph.org> Sent: Sunday, July 07, 2002 5:42 AM Subject: Re: [icecast] Icecast is cool, but how about video? <p>> *This message was transferred with a
2004 Aug 06
2
IceCast Questions.... (&quot;id3 tags, mp3, Ogg, etc)
> How would you "switch" the users, I mean on the fly? Rewrite the > configs so that you define the mountpoint from with the main server > relays anew and give icecast2 a SIGHUP to re-read config? > Anybody tried such things in practice? Using the admin interface (web-based) - it has a way to explicitly move all clients from one mountpoint to another. Mike --- >8 ----
2006 Jan 25
1
If Param not set...
Hello all, I''m developing an application which allows users to browse items for sale... Using the url localhost:3000/browse/by_type/2 (2 is the id of the category they are in) Displays the information I want, however localhost:3000/browse/by_type/ will display an error page (becuase the id param is not set) in my by_type.rhtml view, how to i check to see if the param is set? and
2005 Dec 22
7
Ruby on Rails and lookup tables
Hi, I''m a newbie on both Ruby and Ruby on Rails, and I''m struggling with my first app. I have a table with a column called "employee_id" which is a foreing key associating it with the "employees" table. I have populated both tables. When I run "ruby script/generate scaffold <model name> <controller>" it generates a web page with all
2005 Dec 12
2
count sql failing with unknown table....
Hey Rails People, I''m doing my first Rails app and I''m having a newbie problem with the count method.... Mysql::Error: #42S02Unknown table ''jobs_sectors'' in where clause: SELECT COUNT(*) FROM jobs WHERE (jobs_sectors.sector_id = 1 ) Extracted source (around line #4): 1: <div class="sectors"> 2: <ul> 3: <% for sector in @sectors
2005 Nov 22
11
Building a conditions clause (for find) of multiple optional params?
I want to be able to find items according to various params - category_id, member_id, type_id, rating, etc. What I have now is something like: if(@params[''category_id'']) @items=Item.find(:all, :conditions=>["category_id=?", @params[''category_id'']) elsif(@params[''category_id''] and @params[''member_id''])
2009 Jan 16
12
running a ruby expression stored in a database
Is this even possible? I''ve got a ruby expression stored in a database, it''s the code to run a plugin since I was having trouble passing variables stored in the database. When I try to call the code, it either outputs it as text, or doesn''t display it at all. It''s supposed to generate an image and display it. right now the code is stored in the database as:
2006 Jun 03
8
confused about ActiveRecord relationships
I am very confused about where to put the belongs_to and the has_one (and other relationship identifiers). I have read the RDoc and the agile book many times about this and I think i still see it backwards. Let me outline my app so you have an understanding... I have 2 tables: Schools { id, school_name, address_id } and Addresses { street1, street2, city, state, zip, country } *** this
2018 Jan 25
3
Why R should never move to git
On 25/01/2018 6:49 AM, Dirk Eddelbuettel wrote: > > On 25 January 2018 at 06:20, Duncan Murdoch wrote: > | On 25/01/2018 2:57 AM, I?aki ?car wrote: > | > For what it's worth, this is my workflow: > | > > | > 1. Get a fork. > | > 2. From the master branch, create a new branch called fix-[something]. > | > 3. Put together the stuff there, commit, push and
2006 Mar 05
1
Help with Self-Referential HABTM
With the help of the Rails Recipes have got a self-referential HABTM relationship working, but I''m really struggling with getting a new entry from a form accepted. i should say here that the form is also submitting info for the join table too. So in my model I have: class Type < ActiveRecord::Base has_and_belongs_to_many :subtypes, :class_name => ''Type'',
2005 Dec 28
3
Storing static info in table or model?
Hi, what are your thoughts on where and how to store static information like for example a countries list? I can''t decide whether I should store it as a table called Countries in the database or just create a non active record model that just lists the countries in a hard-coded array in the model file. Is one better than the other? -- Posted via http://www.ruby-forum.com/.
2018 Jan 25
4
Why R should never move to git
On 25/01/2018 2:57 AM, I?aki ?car wrote: > For what it's worth, this is my workflow: > > 1. Get a fork. > 2. From the master branch, create a new branch called fix-[something]. > 3. Put together the stuff there, commit, push and open a PR. > 4. Checkout master and repeat from 2 to submit another patch. > > Sometimes, I forget the step of creating the new branch and I