similar to: Howto ? :: multi notes for same product in rails

Displaying 20 results from an estimated 50000 matches similar to: "Howto ? :: multi notes for same product in rails"

2006 Nov 04
0
Howto ? :: multi notes for same product in rails
Hi, I want to create multi notes for one item. How can I do so in Rails. Steps I want. 1- create a new item 2- write in the edit screen name,desc,.... 3- Add some notes to this item ( from 1 to 20 notes) 4- Save the new item. Any good link or nice document ? Thanks Henrik E -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 15
33
acts_as_commentable release
I now have the acts_as_commentable plugin up on RubyForge. This plugin will allow you to add comments to any active_record object in your Rails application. So far the directions are simple, and there are only a few features: To install: ruby script/plugin install svn://rubyforge.org//var/svn/commentable/acts_as_commentable In the readme there is a sample migration you will need to use, with
2008 Aug 30
4
acts_as_commentable: find Post by date of comment
Hello, I am using acts_as_commentable (related to Post) and I would like to know how to get the list the posts ordered by date of comment (i.e. post with recent comment first). in addition if a post has no comment, i would it to be inserted based on its creation date. Thanks for your help Nicolas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2004 Nov 17
0
[LLVMdev] Re: Notes on the release notes for the fifth public release of LLVM
Well, Henrik has a point. As of now, the only thing LLVM is good for when built with VS is the JIT engine, and then only if you're willing to write your own front end--or be satisfied computing fibonacci numbers :) That doesn't make it useless, of course, as Morten will testify, but the market for this level of functionality can't be big. I do plan on creating projects to build llc
2004 Nov 16
3
[LLVMdev] Re: Notes on the release notes for the fifth public release of LLVM
Well Chris, then I've to ask the guys who really have the hands into the guts of the VC++ code: On Tue, 16 Nov 2004, Henrik Bach wrote: > Hi Chris, > > I'm reading release notes for the fifth public release of LLVM and came > across this line: > > "The LLVM source code is now compatible with Microsoft Visual C++." > > which is almost true, if
2009 May 12
2
STI good or bad for my problem?
Hi. I am currently developing a small course system for student and teachers. The system is divided in sections and sections have many messages, comments, documents and schedules. Pretty easy to set up using ROR, just add some belongs_to and has_many relations. But everything becomes much more complicated when the section items (message, comment and so on...) all has comments. And they can also be
2009 Dec 27
5
Difficulties in understanding Rail-Plugins in depth
Hi, i try to understand how plugins work in detail. Often you see stuff like: class Post < ActiveRecord::Base   acts_as_commentable end I wonder what''s happen all there. What kind of language-feature is behind this call "acts_as_commentable" ? In my opinion you need some kind of extend or include to extend the functionality of a model. And exactly this is which i found
2006 Jul 28
15
Store/product stock design question
Hi all, I''m having trouble figuring out how to handle stock levels in a new store I''m building. When products are entered into the admin of the store, they have a stock number associated with them. What I''m not sure about, is how I go about maintaining this stock level. Take this scenario: 1. User A adds an item to their cart, and I check that it''s in stock -
2005 Oct 15
1
Partials and controllers
Newbie question: From a _form.rhtml file I have: <%= render(:partial => ''item'', :collection => @items) %> In _item.rhtml I have: <% @tullt = h(item.body) %> <%= @itemdb = Group.find(:all, :conditions => "id = ''#{@tullt}''").map {|u| [u.name] } %> <%= @tullt % I think it would be better to
2006 Jan 30
3
Howto change @article.article.headline to @article.headline ?
I have to actions: def index @articles = Article.find(:all, :conditions => "un_published != ''1''", :order => "created_on desc") end and def group id = params[:id] @articles = ArticleGroup.find(:all, :include => [:group, :article], :conditions => ["articles.un_published !=
2013 Apr 05
1
parallel: Race-condition concern regarding graphics devices in a multi-thread environment
Hi, I'm trying to figure out how to safely make sure that I close the same graphics device that I opened earlier in a thread (and not one opened by a parallel thread). In a *single-thread* environment, one can do the following to open and close a device: makePlot <- function(i) { filename <- sprintf("foo%d.png", i); png(filename); idx <- dev.cur();
2006 Jun 12
3
standard way of downloading & using rails standard plugins
Hi, I am a newbie to ruby & rails. Can anybody give me some inputs as to how to download & use standard rails plugins. Any help regarding this will be greatly appreciated. -- If not you then who..... If not now then when...... ----------------------------------------------------- With Best Regards, Medha. -------------- next part -------------- An HTML attachment was scrubbed...
2006 Jun 26
5
How can I dynamiclly generate models?
I am trying to write a plugin, ''acts_as_commentable'', for my models - Image, Book, Music and so on, I do not want to use polymorphic association, so very model should have its own comment class. Here is my code acts_as_commentable.rb module Commentable def self.included(base) base.extend(ClassMethods) end module ClassMethods def
2001 May 09
4
Ext3 destroying ownerships and permissions
Hi! A few weeks ago we upgraded 9 large webservers from ext2 to ext3. Since then we've seen very strange behavior on several of the machines. Permissions of files are repeatedly changed at random occasions. Several times, ownership of files have been totally mangled. Several users have logged in to discover that all their files suddenly are owned by another user! At two of these occasions
2005 Sep 29
1
Ajax in the Aguile Web Development... book
I have bought the book, and are working with chapter 18 (about Ajax). I don''t get the List application example to function as expected. When i fill inn a name, and presses "Add Item". The button gets gray, the text "Adding..." is coming up, and the item is being written in the top of the page, but then it freezes here. I uses the newest rails, installed with Gem, and
2006 May 10
1
Rails Plugin Directory - Comments
The directory of Rails plugins at http://www.agilewebdevelopment.com/ plugins/ now has support for adding comments to plugins, so stop by and leave a kind word about your favorite plugin. :) A feed for plugin comments is available at http:// feeds.feedburner.com/RubyOnRailsPluginComments, while the plugin feed itself is available at http://feeds.feedburner.com/RubyOnRailsPlugins. --
2006 Apr 08
5
rails.el on Ubuntu
Anybody who have a working .emacs (++) for Ubuntu (or Debian) with the newest emacs-rails (v.0.3). I have especially trouble with getting HTML Mode Snippets to work. - Henrik
2002 Mar 07
2
Is it possible to open a specific file in the HTML browser like help(htmlhelp=TRUE) does?
Dear all/anyone, after generating a HTML file "result.html" from within [R], I would like to open the default HTML browser (like help.start() does) to show the file. Is it possible to do this (without trying to do a system dependent search for possible browsers)? I browsed the source of package 'base' (R v1.4.1 WinMe) and I found the following in help():
2006 Jul 07
3
Credit Card validation using rails? can i do it on rails?
help me with this one, i need any tutorials regarding this credit card validator -- Posted via http://www.ruby-forum.com/.
2014 Jun 18
2
Howto migrate shares from samba 3 / ADUC changing uid/uidnumber when activating UNIX (posix) attributes
Hi, I've been using Samba 3 (standalone server, workgroup setup) for a long looong time and now I want to migrate to Samba 4 AD DC setup with clients joined to the newly created AD domain and all the bells and whistles that come with it. I've setup an AD DC (Debian wheezy with samba from backports) that will only handle authentication and a second AD DC that will also serve shares.