Displaying 20 results from an estimated 700 matches similar to: "Help On Associations Extension."
2006 Nov 14
4
Catching a list of variables with a Controller
Hi All,
I have been learning some ruby and some Camping at the same time by
implementing a little webapp to track expenses (one man''s blog...) that
includes the ability to tag entries with 1 or more tags.
I wanted to offer the possibility to narrow the view of expenses by adding
tags to a filter (this works) and I also wanted this filter to be reflected
in the URL. Like so:
normal URL:
2008 May 22
9
building a many-to-many structure in javascript
hi,
for some purpose, I need a "in-javascript database", maybe built with
some Prototype $H function calls for creating "tables"
but what about junction tables, I mean those which express many-to-
many relations between two entity tables ?
I though using concatenation of strings with a separator, for example
"key1 key2"
"1234-56"
or "ABC \n 789"
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
2006 Apr 28
1
acts_as_taggable help
Ahoy, having a bit of difficulty w/ the acts as taggable GEM.
I was able to create a tagcloud, but now i want to filter items by tags.
in my controller i have
def show_tagged_with
<-- snip snip -->
@items = Item.find_tagged_with( :any => params[:tag_name])
@categories = Category.find_all
@tag_name = params[:tag_name]
@tagged_items = Item.tags_count(:limit
2008 Jun 19
2
Pattern Matching Replacement
I would like to replace "\r\n" with "" in a character string, where "\r\n"
exists only between < and >, how could I do that?
Initial:
characterString = "<XML><tag1
id=\"F\r\n2\"></t\r\nag1>\r\n<tag\r\n2></tag2></XML>"
Result:
characterString = "<XML><tag1
2006 Aug 10
2
search acts_as_taggable for multiple tags
Hey...I''m trying to search a Model that uses acts_as_taggable for multiple tags. I''d like to pass in a search string containing a space delimited tags names (i.e. "tag1 tag2") and return the objects that have been tagged by either one of those. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Oct 05
1
Broken support for Smart Card Logon in Windows 2003 and XP
Hello.
As I can see this post: https://jira.it.su.se/jira/browse/HEIMDAL-241,
at least? Samba 4.0.0alpha5 supported Smart Card logon for Windows XP
workstations.
Current version (Version 4.0.0alpha14-GIT-77d959f+) does not support
smart card logon on Windows XP workstation (but Windows 7 works well).
I tried to compare Kerberos traffic examples from genuine domain
controller and Samba's
2012 Jul 17
2
puppet host tagging
Hi all .
i am running puppet version 2.6.16 and foreman Version 0.4.2 .
my question is as follows .
i would like to know if there is a way to tag server with a group tagging .
for example .
let say i am running apache with a unique configuration and network
architecture and want to tag in with "tag1"
and a i have few more apache installation with the a new unique
configuration and
2006 Jan 19
5
limits of has_and_belongs_to_many
I''m experimenting with Rails on the Recipes example first before I dive
into applying it to my intended application. I''m exploring which will be
more work: to rename all the primary id''s in the legacy database, or to
work around the fact that the primary id''s are not called ''id'' within
RoR instead.
I''ve been successful in using a
2006 Apr 17
6
acts_as_taggable confused
Ahoy,
So i''ve installed the acts_as_taggable module and everything is fine,
but i''m a bit confused about this bit of code described in the API
"photo = Photo.new
# splits and adds to the tags collection
photo.tag "wine beer alcohol"
# don''t need to split since it''s an array, but replaces the tags
collection
# trailing and leading
2012 Apr 18
1
has_and_belongs_to_many: Item Already in Collection?
I''m putting together what should be a simple app using content and
tags
using has_and_belongs_to_many for each.
create_table :contents_tags, :id => false do |t|
t.references :content
t.references :tag
end
When a user tries to add a new tag, I''m trying to detect if the
content already has the tag.
So ... I grab the tag like this:
tag =
2005 Dec 16
1
acts_as_taggable sql injection vulnerability
Hey everyone!
If you''re using acts_as_taggable <= 1.04, (erm, any version, I
think..) please fix your local copy right now! There are numerous sql
sanitization holes in this library.
I notified Obie of this over a month ago, so hopefully he''s fixed it.
How to tell lif you''re vulnerable
======================
Make a tag with a single quote in it. See if raises an
2011 Sep 18
2
troubles with a for loop
Dear all,
I am a stata user and I am moving my first steps in R.
I am dealing with a silly issue concerning looping over variables. I read
previous posts on similar topics in the R help archive, but I did not find a
solution.
Here is my case:
I run a simple bivariate linear regression saving the output in objects
called: pd.memb.0, pd.memb.1, pd.memb.2, pd.memb.3
pd.memb.0 <- lm(E.fs.memb ~
2006 Apr 20
2
acts_as_taggable magic.... please explain
Hi,
There is a line in acts_as_taggable plugin:
send(acts_as_taggable_options[:from]).tags.find_or_create_by_name(name).on(self)
could someone explain what is:
send(xxx)
and
.on(self)
I cannot find it rDoc
--
Posted via http://www.ruby-forum.com/.
2006 Jun 21
7
acts_as_taggable and paginate?
Hi there,
I''ve been trying to paginate over a list of members that all share a tag in
common using the acts_as_taggable plugin. The regular way of paginating over
a collection doesn''t seem to work with acts_as_taggable. Here''s what my
method looks like that takes in a tag name, finds all the members that share
the tag and then displays all the members. Nothing too fancy
2010 Dec 20
2
foreman issue
Hello!
I try to use foreman. It''s successfuly import current nodes from
puppet storeconfig. Nodes hostname stored in short form, without
domain.
After that, i run puppet on newly created additional 5 nodes. They
shows in foreman with full fqdn. Os, environment, architecture for
this nodes not shown.
How can i fix this issue?
--
You received this message because you are subscribed to
2007 Nov 29
0
has_many_polymorphs for user owned tags
Hi all,
I''m trying to extend the tagging functionality of has_many_polymorphs to
work with user owned tags - ie, putting belongs_to :user in the Tagging
model.
So I changed the index in the generated migration, and added user_id to
the taggings table.
Then I added belongs_to :user in the Tagging model.
In the lib/tagging_extensions.rb file I added a new function:
def
2006 Feb 28
2
acts_as_taggable and auto_complete
I''m using the acts_as_taggable gem (who''s site has gone AWOL
apparently) and I''m wanting to make it autocomplete. I, however, am
the absolute worst JavaScript person ever, so is there anyone out
there that can point me to a tutorial or give some good starting
points? Thanks!
Kenneth
--
=> the blog from beyond <=
=> www.eyeheartzombies.com <=
2006 Dec 27
4
acts_as_taggable issue
This won''t post with a full code paste, so I''ve got to link it to
another forum where I''ve posted it.
http://www.railsweenie.com/forums/1/topics/1053
Can''t get the acts_as_taggable plugin to play nice. Works in console,
not in teh view.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2007 Jul 28
2
activerecord model constantize question
I have a variable called column with the value of "bla" (column =
"bla")
I have a model call Location where method bla is defined (amongst many
other methods). What I would like to to is to call the method in
Location defined in the variable column.
I tried:
Location.column.constantize
but that gave me an error NoMethod.
I am sure there is a very simple way in Ruby as