Displaying 20 results from an estimated 3000 matches similar to: "HasManyThroughCantAssociateNewRecords Exception"
2008 Dec 11
1
help needed regaring Acts As Taggable On Steroids
Hello,
In my rails application, I have a book model.
I want to add tags. For that I have installed
acts_as_taggable_on_steroids from this link
http://agilewebdevelopment.com/plugins/acts_as_taggable_on_steroids
and do as the readme file.
This is my Model :
class Book < ActiveRecord::Base
acts_as_taggable
end
Here is my ApplicationHelper :
module
2008 Feb 26
1
problem with posting with acts as taggable on steroids
hi all
i''m trying to have a post with tags included but i''m getting
undefined method `tag_with''
i''ve already added acts_as_taggable to the model
and on the controller the code for creating the post is:
def create
@post = Post.new(params[:post])
@post.tag_with(params[:tag_list])
@post.user = current_user
if @post.save
redirect_to
2006 Nov 17
3
acts_as_ferret + :tag_list, how to use it?
hello,
i am currently using acts_as_ferret in one of my applications and now
would like to also incorproate tags. i came across somesones blog that
had this:
//////
Having Ferret index method results (like :tag_list) worked
out-of-the-box for me with acts_as_ferret. I specified attributes (table
columns) as strings and methods as symbols, like so:
acts_as_ferret :fields => [?title?,
2007 Jul 06
0
Removing One Element From a Serialized Form
Hi all,
I''m trying to serialize a form with the exception of one specific
element.
Serializing the form in a hash (without pulling out specific elements)
works:
<li>
<%= link_to_remote ''(Save)'', {:url => post_path(@post), :with => "$
(''post_form'').serialize(true)" }, :method => :put %>
</li>
The generated code
2006 Sep 18
3
Automatic reindexing of associated columns acts_as_taggable
Hi,
So i''m trying to use acts_as_taggable with the acts_as_ferret plugin,
where I have Post.rb model, which has a method tag_list made available
through acts_as_taggable, as returns a string of associated tag words
from the tags table (tag.rb). I''ve set up my Post.rb model in the
following way.
class Post < ActiveRecord::Base
acts_as_taggable
acts_as_ferret
2006 Dec 26
0
acts_as_taggable Plugin issue (not gem)
I tried to post this earlier, but it never came through. I''ve got
something working in console, but not in controller. Any idea why?
This is the plugin not the gem of acts_as_taggable
*View*
<code>
<h1>Listing elements</h1>
<% if @elements.blank? %>
<p>There are currently no elements in the system tagged <%=
2006 Aug 07
3
Acts_as_taggable / Rails Recipes bug?
I''m following the acts_as_taggable chapter from the Rails Recipes book.
I want my view form to have a text_field that correlates to an attribute
in the Model that accepts a string of space delimited tags. The book
uses tag-_list, but from what I can tell this attribute can''t be written
to. I''ve added this to the plugin code itself - am I missing something,
is there a
2009 Nov 12
0
Problem with has_many :through, :uniq => true with polymorph
Didn''t have quite enough space to describe it there...basically i''m
having a problem with the :uniq option in my tags.
I''m using acts_as_taggable_on_steroid which adds these associations to
my Resource class:
Resource
has_many :taggings, :as => :taggable, :dependent => :destroy, :include
=> :tag
has_many :tags, :through => :taggings, :uniq => true
2007 Nov 21
2
uniq -c
Is there an R analog of the Unix command uniq -c:
http://en.wikipedia.org/wiki/Uniq
Given an array x, uniq -c replaces each contiguous subsequence of
identical numbers with a tuple (count, number). E.g.
$ cat > usample
10
10
9
8
8
7
7
7
6
3
1
1
1
0
$ uniq -c usample
2 10
1 9
2 8
3 7
1 6
1 3
3 1
1 0
Cheers,
Alexy
2006 Oct 15
1
acts_as_attachment and tagging?
hi, i read this:
http://www.johnnysthoughts.com/2006/08/27/ruby-on-rails-using-full-text-search-with-tagging/
does this mean i do not have to install the acts_as_taggable plugin? all
i need to do is something like this is my model class?
acts_as_ferret :field=>[''name'', :tag_list]
--
Posted via http://www.ruby-forum.com/.
2007 Nov 16
1
problem with searching plurals (with apostrophe)
hello guys,
i am using acts_as_ferret plugin(0.4.1 Latest) with ferret gem(0.11.4 Latest)
on rails 1.2.5 and ruby 1.8.6(UBUNTU Gutsy)
i have this
:Stores Model
acts_as_ferret :fields => {:name => { :boost => 2 ,:store => :yes},
:short_desc => { :boost => 1.5,:store =>
:yes },
:tag_list => {:boost => 1
2006 Feb 07
1
habtm :uniq causing duplicate inserts? How to update Rails?
Hello *Gem* experts,
Sorry for asking multiple questions in one post but they are both related to one problem.
So far I have the following code:
class Member < ActiveRecord::Base
has_and_belongs_to_many :blogs, :uniq=>true
.....
end
class Blog < ActiveRecord::Base
has_and_belongs_to_many :members, :uniq=>true
...
end
The issue is that
2014 Jul 19
1
patch about mingwbuild 4.9.1
recently I used gcc 4.9.1 (http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/)on windows to build R,but failed when link R.dll ,it report linker status 5.
after some digging, I found when use gcc 4.9.1 64 bit on windows there are lots of .refptr.*(* is r function name) in R.def, which lead build fail.so I add a simple path to
2010 Feb 02
1
ggplot/time series with indicators question
Hello, I am trying to plot time-series data with certain weeks highlighted using symbols.
require(ggplot2)
#plotting time series data
timescale <- seq(as.Date("01/01/09","%m/%d/%y"), length.out=12, by=7)
data.all <- data.frame(
id = c(rep('111',12),rep('222',12),rep('333',12)),
week=c(timescale,timescale,timescale),
2007 Oct 18
0
Getting the through items from a has_many :through :uniq relationship
Getting the through items from a has_many :through :uniq relationship
In a nutshell, I have been using the has_many :through :uniq
relationship, and I want a DRY way to list the join model objects.
Currently, my objects include taxon objects, toxin objects,
data_object objects, and taxon_toxin_citation objects ("citation" is
another word for data_object). A taxon has many data objects,
2005 Apr 26
1
ldap uid with static gid problem
hi,
i'd like to use dovecot to authenticate from ldap. in ldap each user has
it's uniq uid and gid. unfortunately with postfix we can't use uniq
uid/gid since in this case we have ot create all user's home in advance.
so we decided to use uniq uid and a common gid in postfix since in
this case postfix can create new users maildir and deliver new mails. so
i'd like to
2007 Jul 13
8
More sorting problems with untokenized index
I''m having problems sorting on untokenized fields. I have one field that
sorts fine, but there are others that seem to sort on a different field.
Here''s the index description:
acts_as_ferret
:remote=>true,:fields=>{:name=>{:boost=>2},:name_for_sort=>{:index =>
:untokenized},
:city=>{:boost=>2}, :city_for_sort=>{:index=>:untokenized},
2004 Dec 27
2
bidirectional synchronization of dovecot-managed maildirs
Hello and happy holidays,
I've been thinking about high performance bidirectional synchronizing
the mail on my laptop (which is frequently disconnected) and my
workstation at work (which is always on and receives all inbound
mail). Both run dovecot on top of maildir.
I've been playing with offlineimap, unison (which I already use for
all my non-mail files), as well as the gnus agent (in
2006 Apr 11
0
habtm and :uniq
Hi
I wonder what the state of this ticket is:
http://dev.rubyonrails.org/ticket/2019
Does anyone have information regarding whether there are plans to fix
this behaviour? It seems strange to me to force uniqueness in Ruby
(i.e. application code) but not in the database.
For example, in activerecord/lib/active_record/associations/
has_and_belongs_to_many_association.rb there is a line
2008 Jan 18
1
Automatic call-out problem
Hello!
My setup is Asterisk 1.2.26 with Zaptel 1.2.22.1, libpri-1.2.7 on
Fedora Core 4. I am making automatic call-out campaign with this setup
on 4 PRI. The scripts for this:
====================================================================
caller php script write this to outgoung folder:
fwrite($outfile,"Channel: Zap/g1/$phonenumber\n");
fwrite($outfile,"MaxRetries: