similar to: Creating a comments system for multiple types of content

Displaying 20 results from an estimated 100 matches similar to: "Creating a comments system for multiple types of content"

2012 Jul 28
1
Mixed-model with paired design & covariates
Dear all, I make habitat suitability models for animal species. The purpose of my research is to investigate the accuracy of different models. I clearly have a nested design: - accuracy_measure -> response variable - 2 model types (model_type) -> fixed effect - 230 species (species) -> random effect - 10 replicates/species (replicate) -> random effect - 10 subreplicate/replicate
2006 Aug 16
4
Overwrite form helper methods and call old ones in new ones?
Hi all All my forms should look the same, so I think always putting the right div etc. tags around them is a violation of the DRY principle. Until now my forms look like that: <div class="text_field"> <label for="news_item_subject">Subject:</label> <%= text_field "news_item", "subject" %> </div> Now I want the default
2006 Aug 17
2
What helper makes "News Item" out of "news_item"?
Hi all Look at the title, I guess you know what I mean... What helper makes the attribute names of tables human readable? news_item >> News Item name >> Name etc. Thanks for info :-) Joshua -- Posted via http://www.ruby-forum.com/.
2006 Apr 13
0
Globalize not with Rails 1.1.2
Does anybody have the latest Globalize (r184) working with Rails 1.1.2? I can''t seem to get a very simple example to work: ----- ruby test/unit/news_item_test.rb Loaded suite test/unit/news_item_test Started F. Finished in 0.10109 seconds. 1) Failure: test_add_content_translations(NewsItemTest) [test/unit/news_item_test.rb:49]: <"US Title"> expected but was
2007 Nov 12
7
schema_info always wants to be 3, even when set to 7
Hi all, I''m having a very odd problem with db:migrate. I''m using Rails 1.2.5 on Windows XP SP2 and Ruby 1.8.6 I have seven migrations. If I run them with an empty database, it runs the first three, then halts. When I look in schema_info, the version is 3. If I run db:migrate VERSION=7, then it runs through the remaining 4 migrations, and the version is 7 in the DB.
2006 Aug 17
1
Disable rendering of layout using a GET parameter?
Hi all Is there some sort of a built-in possiblity to disable the rendering of the layout using a GET parameter? Something like :url_for :controller => :news, :action => :show, :id => news_item, :layout => false This should construct something like that: /news/show/123&layout=false And automatically the layout wouldn''t be rendered. Is this already built-in, or
2006 Jan 08
9
URL/Site structure
Greetings, I''m fairly noob with rails and making my first DB driven site with it. I''m using the scaffold generator to develop the admin side of my site (admin_controller) I have three sections that I want to have the administrator edit, and I want to call these from the admin controller that has a layout with navigation to these three sections. When using the scaffold
2024 Feb 02
2
List of Words in BioWordVec
Is there a way to extract list of words in BioWordVec in R Thank you Tjun Kiat [[alternative HTML version deleted]]
2009 Feb 22
8
dynamically changing a form from POST/CREATE to PUT/UPDATE
For the life of me I can''t figure this one out, although I can''t find anyone else who''s attempted to do this, and probably with good reason. Context: blog using AJAX What I''m trying to do: when the user initially saves a blog entry, or when auto-saving, I want subsequent saves to not create a new blog entry Why I can''t just reload the partial: -
2006 Mar 11
2
Customising FCKeditor
I would like to customise my FCKeditor-instance so that when the "add image" button is pressed, it opens my own add_image popup. In this popup i would handle the image upload/image browser/etc. tasks with rails. How can I open the popup and pass the picture information from there back to FCKeditor''s textarea? -- Posted via http://www.ruby-forum.com/.
2007 Feb 01
4
Automatically Indexing Associated Models
PROBLEM I have two models, Blog and BlogComment. When a blog is initially created, it has no comments. Upon creation, the title and body are automatically added to the ferret index and directly searchable. However, when a comment is added to a blog, that comment does not get added to the index and is therefore not ferretable. The desired behavior is that when a comment is added to a blog, that the
2008 Sep 18
1
"xxx_id may not be null" when saving many to many joined objects
Hi, I have two model classes; Tune and Title and they are joined in a many to many relationship through a Variation class. Here''s some stub code of the models: class Tune < ActiveRecord::Base has_many :variations, :dependent => :destroy has_many :titles, :through => :variations ... class Title < ActiveRecord::Base has_many :variations, :dependent => :destroy
2006 Mar 31
3
ID fields not getting picked up
For example I have table Questions. With fields id, text, and test_id. test_id is not being displayed in my view. I am hoping this means Rails has picked up that it is an id for another model. If so, then how do I utilize that? If not, then do I need to avoid ''id'' in any field names other than the main id field? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
0
Controller Modules Messed Me Up
Modules are exactly what I needed to figure out, but once I started my app over again putting my controller under a module folder, I can''t get my basic app going. Basically I have a News app, where we will post PR and other articles of interest. It was working fine with a model/controller combo of news/index for the public and news/admin for the administrators. Keep in mind this
2006 Mar 20
24
Newbie Question about Custom Classes
Sorry if this is a complete newbish question, but I''m trying to wrap my head around creating custom classes in my rails webapp. I''m normally a Java developer, but I figured I''d give RoR a try and see how I like it, and whether it would be useful for production use with a new client. Anyways, what are the best practices for custom classes? Where and/or how do I create
2006 Jun 16
4
Prototype $$() on arbitary DOM element ?
I am bit confused with this function. Should I be able to pass in a DOM element e.g. someAjaxRequest.responseXML and interrogate it ? Seems not but perhaps I am missing something... TIA Matt
2008 Sep 13
3
Freebsd auto locking users
Dear FreeBsd gurus, I have a problem concerning users password and authentication policies. The goal is 1)make freebsd to lock users after 3 unsuccessful login attempts, 2)force users to change their passwords every 90 days I've done such changes in Linux distros, with various PAM modules.But in Freebsd it seems that i need to use login.conf file. Here I made necessary changes in that
2009 May 05
1
will_paginate problem
Hi all, I''m having a bit of a problem with displaying a blog list using the will_paginate helper. My code is: entries_controller: def index @entries = Entry.find(:all) @blog_entries = @entries.paginate( :page => params[:page], :per_page => 4, :include => :user, :order =>
2006 Feb 03
0
newbie trouble with find method and dual many-to-many relationship
Hi, I''m trying to do something which I think is fairly simple, but I''m stuck on the syntax. Briefly, I have three classes: users, groups, and blog_entries. There''s a M2M relationship between users and groups, and a M2M relationship between groups and blog_entries. I''ve got my classes defined ok, but in my "list" method for the blog_entries I
2006 Sep 05
0
rake craziness with Migrate as a dependency
Hi everyone, For one of our projects we have a need to deploy and maintain a demo. As a result I''ve attempted to setup a set of rake tasks for the job. My goal is have one rake task called "deploy_demo" which purges the database, migrates to the current schema, and loads the db from a set of fixture files in a specified location. I''ve written two new tasks the perform