similar to: Attributes of a relationship

Displaying 20 results from an estimated 1000 matches similar to: "Attributes of a relationship"

2006 Jun 22
2
id column for join table... kosher?
I''ve got two tables, bookmarks & tags. Using a has_and_belongs_to_many association, I can do lookups using a join table called bookmarks_tags. Two questions: 1. Can I have a migration for my join tables? Rails seems to "know" about join tables implicitly from the associations, but if I do a rake migrate the join tables won''t be built. I''ve been
2005 Sep 13
5
acts_as_taggable 1.0.4 now gemified!
Hi Folks, The acts_as_taggable mixin is now available as a shiny gem. More details here: http://dema.ruby.com.br/articles/2005/09/13/acts-as-taggable-gemified This release features some cool additions as well. Cheers Dema -- http://dema.ruby.com.br - Rails from a .NET perspective
2006 Jul 24
2
Thread.new with ActiveRecord under Mongrel vs. FastCGI
Hi All, I''m going to end up hosting a site on a server in a fastcgi environment, but I''ve been doing most of my development under mongrel. I have a bit of code that spawns a thread, and in the thread it makes some remote calls (openuri) and does some database inserts via activerecord. When I do this under FastCGI, everything appears to work as expected. When I do it under
2005 Dec 17
3
Question on Db Table design
Hi Suppose one has a db to track bookmarks for multiple users. Let''s assume that there are ten''s of thousands of users, and that an average user may have 100 bookmarks. (Assume here that no two bookmarks are the same.) Is it a common practice to have a bookmark table for ALL users, thereby producing a table that has on order one million rows. Or, is it better to somehow group
2006 Jan 23
2
del.icio.us-like output
I''m trying to build a page similar to a delicious page that is a listing of your bookmarks in this format: 1. Querying serialized data in ActiveRecord<http://www.karmiccoding.com/articles/2005/11/29/querying-serialized-data-in-activerecord> Hack to search serialized fields to rails <http://del.icio.us/djsodom/rails> ... and 4 other
2004 Nov 12
1
Firefox keyword searches for R & S-Plus
If you've 'rediscovered the web' with Firefox (http://getfirefox.com), you might find this tip handy. Suppose you want to search the (local) R documentation for information about the lme function. Wouldn't it be nice to just type into the browser address bar: r lme and have the search performed? Here's how (on Windows): Click on this link:
2006 Jun 14
0
testing table associations
First, thanks to everyone who replied to my pluralization question from before! Today I''m confused by associations. I''ve set up a bunch of associations in my models to describe these relationships: - each user can have many bookmarks and tags - each bookmark can have many users and tags - each tag can have many bookmarks and users (Part of what is confusing is that I can
2001 May 15
1
How to display bookmarks on Lotus Notes 5 - Here is the solution
If you use Notes 5 with wine, you probably have the problem, that the bookmarks frame doesn't open when you click on Favourites or other folders on the left side. Solution: Create a Memo in Notes Go to the Body field and select Create/Hotspot/Button In the lower half, select Script and paste in this code Sub Click(Source As Button) Dim db As New
2003 Dec 18
1
sharing bookmarks with rsync
I would like to have my computer at home and my computer at work to share the same bookmarks. My idea was to have each of the computers sync with a server's bookmark file. If the client has a newer file than the server it would upload it, if the client has an older file it would download it. I already have the authentication keys set up and want to do it over ssh. Would this be one way to
2015 Jul 12
1
Mounting NFS file systems via Nautilus on CentOS 6
Looks like Nautilus is periodically 'stat'-ing the bookmark location. How about making a softlink to the target dir in your home directory, then bookmarking the link in nautilus. Hopefully Nautilus will stat the link and not the target then. K
2005 Sep 12
1
Multi-Channel/Stream support?
Hi all, I'd like to know how well Speex handles multiple input streams. More specifically, if i have 4 streams that are playing at "the same time", how well does the CODEC handle switching from one stream to the next to process the audio. The reason i ask is this....My project up until now uses the MELP CODEC which didn't specifically have the ability to handle multiple
2010 Oct 11
5
Object lost in memory/trashed?
Hi, I''ve got a problem on which I''ve spent many hours, and I can''t get a clue on what is happening... I hope someone here will be able to help me. Here is the situation : my Rails app uses acts_as_commentable and acts_as_bookmarkable on a Diagram model. Everything''s working OK individually: I can create a comment on a Diagram, bookmark it, and so on. Now,
2006 Jan 02
4
Bookmarking a page inside r-project.org
By way of review, most large Web sites allow the user to create *bookmarks* which link to pages inside the Web site. However, here, the pages have one of just two URL's: http://www.r-project.org and http://cran.r-project.org The reason is the way HTML *frames* are used in setup of the Web site. It would be very helpful if the Web site were revised so that many if not most pages had
2012 Oct 12
2
pdf viewer with bookmarking facility?
pdf viewer with bookmarking facility?
2006 Feb 09
2
Strategies for updating multiple parts of the page with AJAX
Hi all, I have a layout that''s evolving, but it looks like there will be several divs. I''m trying to keep everything AJAX-y and avoid full page reloads. My problem is, if I have the login box in a div, I''m going to want two other divs to effectively "refresh" themselves to get data from the server now that there is a user logged in. I''m trying to
2006 Apr 04
13
Myowndb: a web database built with rails
Hi all, I wanted to announce on this list that I have launched http://myowndb.com which is a web database built with Ruby on Rails. The application lets the administrator users define the data structure through a web interface like in a normal database, with: - tables - enhanced datatypes like emaili, web URL, and a choice in list - relations (one to many, one to one) between tables Once the
2007 May 09
0
SyslogLogger 1.4.0 Released
SyslogLogger version 1.4.0 has been released! http://seattlerb.rubyforge.org/SyslogLogger SyslogLogger is a Logger replacement that logs to syslog. It is almost drop-in with a few caveats. Changes: == 1.4.0 / 2007-05-08 * Split from rails_analyzer_tools. * Added eh methods for compatibility with Logger. * Added syslog-ng instructions. Patch by Tom Lianza. * Fixed require in
2006 Mar 21
5
Object#id being deprecated - Rails 1.1
Hi Think this is probably straightforward, but I don''t know enough about rails to work it out, so was wondering if anyone can help I keep on running into this error when I''m deploying my app: "FastCGI: server ".../public_html/public/dispatch.fcgi" stderr: ../config/../app/views/items/_side_share.rhtml:8: warning: Object#id will be deprecated; use
2006 Aug 12
2
Very weird counter_cache behavior
Hi All, I''m using a counter_cache, which I believe I''m doing correctly because I can see this SQL query being executed in the development.log file: UPDATE gifts SET bookmarks_count = bookmarks_count + 1 WHERE (id = 276) However, in the gifts table, the bookmarks_count field isn''t incremented (it''s zero). If I literally copy and paste that query into the
2004 Aug 06
14
brainfart #67453 - hyper-index
I don''t know if this has been suggested before but.. What about adding support for a bookmark or hyperlinked index? The idea is that a large compilation such as a long speech or an album would be maintained as a single file, but on playback, the player would show numerous ''tracks'' which are really just bookmarks relating to starting position of the specific part or