similar to: Help needed with ActiveRecord

Displaying 20 results from an estimated 100 matches similar to: "Help needed with ActiveRecord"

2006 Jan 31
1
view vs controller - data from multiple tables.
Hi all, please pardon my question if it seems silly.. I''m trying pretty hard to learn though. :) I have 2 tables: feeds (has_many feed_items) feed_items (belongs_to feed) Let''s say Feeds has 3 feed.names: "Things that Start with A", "Things that start with B", "Things that start with C". I want to print out, on one page, something like the
2006 Jan 19
0
Activerecord | Understanding associations
I have 3 tables feeditems{ id, feedname, timestamp } tags{ id, name, feeds_id } how do I retrive the last 10 feeditem entries and its tags? I know this is simple but am all confused. Any help is greatly appreciated. Thanks! Newbie! -- Posted via http://www.ruby-forum.com/.
2006 Aug 09
2
Link to most recent
Greetings all, I have a side panel in my app that needs to have a link to the most recent 4 or 5 items in a table. How do I create this link? For example, I have a controller named widgets, and I want to create a link to :controller => "widgets", :action => "show", and then the most recent id. I want the text link to be the name of the widget. Any ideas? Obviously,
2006 Apr 29
3
Feedtools question
I use feedtools to generate the feeds and read them,and now they can not work well: This is the code for feed generating: class FeedsController < ApplicationController def userrss @user = User.find_by_id(params[:id]) @articles = @user.articles(:all,:order => ''updated_at desc'') @headers["Content-Type"] = "application/xml; charset=utf-8"
2006 Mar 20
3
can''t get my rss to validate with feedtools
I know that I''m doing something wrong, but I can''t figure out what. I''ve looked at every wiki and tutorial I can find on feedtools but I still can''t get my rss feed working. Here''s my code. feed = FeedTools::Feed.new feed.entries << FeedTools::FeedItem.new feed.entries[0].author.name = "Charlie Bowman" feed.entries[0].title =
2005 Mar 24
1
43Things.com on the Today show?
They weren''t as far as I know. But maybe they should be soon. It looks like the Today Show (a morning show on NBC in the US) is doing a "Live for Today" segment, basically the same thing that 43 Things is doing. Maybe someone from Robot Coop should let them know about 43 Things. http://www.msnbc.msn.com/id/7225307/ -Lee
2007 Aug 23
1
Hints & examples for content creators & packagers
At speex.org, I read that Speex is well-suited to internet audio streaming and audio books. However, I am having difficulty finding or creating audio-book-type material of acceptable audio quality vs file size. For the sake of comparison, look at the speex sample in Ubuntu's example-content_26_all.deb vs http://podcast.msnbc.com/audio/podcast/pd_mtp.mp3 The mp3 sounds ok, streams and seeks
2003 Dec 27
3
Setting up asterisk on Rh 9
Hi Friends, I am new to linux and new to asterisk. I need some help setting up asterisk in my linux box. Does anyone have a step by step guide ? On my PC i have installed a phonejack (from Quicknet) as well. Your help is appreciated.. I kind lost.. thanks, _________________________________________________________________ Expand your wine savvy — and get some great new recipes — at MSN Wine.
2004 Jan 06
3
Policies - deny some nubers
Hi, I had asterisk installed, ISDN-adapter, some x-lite software-phones and I can call betweens the softphone- and 'normal' phones during the ISDN-card. 2 questions now 1) Is it posible to create policies, so that some SIP-users can dial ALL numbers, and some SIP-users not are allowed to dial eg. 900xxx-numbers, 30xxxxxx (mobilphones), 40xxxx(long distance) and if possible on time
2006 Apr 30
2
Rss feed items disappear using feedtools?
I have met a problem on Feedtools and felt very confused about it: The feed that I generated using feedtools can not be read correctedly by feedtools,while rss from other websites can be read. Still,the code for rss generating: def userrss @user = User.find_by_id(params[:id]) @articles = @user.articles(:all,:order => ''updated_at desc'',:limit => 15)
2006 Mar 20
7
error using feedtools
I performed a gem install feedtools, I then added these 2 lines to my environment.rb: require ''rubygems'' require ''feed_tools'' I then added this method in my controller: def rss @post = Post.most_recent feed = FeedTools::Feed.new feed.title = ''Recent Rambles'' feed.subtitle = ''random thoughts by me''
2005 Sep 29
1
adding to: winlogon problem error with Default User/ "... does not
whoops, i didn't have much luck attaching the entire file, hopefully this link will work. http://www.lebox.org/u/milan/samba/userenv-clip.txt here's a piece of the log that looks interesting, any hints? USERENV(a0.80) 15:42:18:872 MyGetDomainDNSName: MyGetUserName failed for dns domain name with 1355 USERENV(a0.80) 15:42:18:872 CheckUserInMachineForest: MyGetDomainName failed with 1355.
2006 May 13
6
Asking for help again about my thread debug
As http://www.ruby-forum.com/topic/65495 has shown,I have drawn into trouble about my thread debugging for some days,and need help to solve it urgently! This thread problem comes from the design requirements that my web application will get the rss feeds read which are generated by the web application itself. http://www.ruby-forum.com/topic/63984 has shown my code,and the key code is the
2004 Mar 07
1
win32-mmap problem
Hi all, Ruby 1.8.1 (hand built, not the installer) Windows 2000 I was just playing with win32-mmap. I tried running the test_server.rb and test_client.rb. I started the server, which seems to be fine, but when I run the client I get this: C:\eclipse\workspace\win32-mmap-0.1.0\test>ruby test_client.rb C:/ruby/lib/ruby/1.8/ftools.rb:23:in `initialize'': Permission denied -
2004 Feb 15
0
Return values from Process.fork
Park, Right now it looks like Process.fork is return 0 to the parent and a pid to the child. Shouldn''t it be a pid to the parent and nil to the child? Or is that just how it has to work for Win32? Dan _________________________________________________________________ Keep up with high-tech trends here at "Hook''d on Technology."
2001 Oct 22
1
basic question
hi there, i'm about to install wine on my debian system. is it better to use libwine for the dll's or is it better to use MS's dll's? thanks, pete -- "You may not use the Software in connection with any site that disparages Microsoft, MSN, MSNBC, Expedia, or their products or services ..." -- Clause from license for FrontPage 2002
2001 Oct 25
1
basic install questions
Hello, I was reading the docs and have a few questions: 1. I compile wine from the daily debian repository at gluck.debian.org. Do I still need to first remove the old wine before dpkg'ing a newly compiled wine source? 2. I plan on installing wine WITH Windows. Can I still use winesetuptk? I can ignore installation on wine-lib, right? 3. Copyright issues aside, would the most
2016 Mar 26
0
Mingw64 GtkLauncher.exe Crashes
I have successfully installed the cross compiled dll's and other files supplied by centos 7 on a machine running Windows 7. When I run GtkLauncher.exe it comes up with the google page displayed. However, when I try to view "http://www.msnbc.com" Gtklauncher crashes in libjavascriptcore.dll at offset 0xa4944. nfl.com comes up, but then crashes in the same place. My questions
2004 Aug 06
0
Oddcast not working with WinAmp 5.01
>I've seen this problem before several months ago with Winamp 2 and reported >on it at the time, though I may have put it in different words. I believe >it only occured under Win98. I'm using XP now and I haven't seen the same >problem since. > >It was very bizzare. I tried everything including removing all DSP plugins >except Oddcast but Winamp still insisted
2004 Aug 06
0
Oddcast not working with WinAmp 5.01
Does Oddcast have any Windows98 dependancies that I might be missing after doing a reformat? Can't think of what else might be wrong... =( - Chris >From: "Christopher G" <djmoguta@hotmail.com> >Reply-To: icecast@xiph.org >To: icecast@xiph.org >Subject: Re: [icecast] Oddcast not working with WinAmp 5.01 >Date: Wed, 14 Jan 2004 08:43:18 -0500 >