Displaying 5 results from an estimated 5 matches for "add_tags".
Did you mean:
add_tag
2010 Jan 07
1
text field with autocomplete
Hey everybody,
I am using text field with autocomplete in my posts new action. That
works great.
Response from autocompleter in firebug:
POST http://localhost:3001/posts/auto_complete_for_tag_name 200 OK 68ms
but if I use the same in edit action it fails and I got this error.
POST http://localhost:3001/posts/781/auto_complete_for_tag_name 404 Not
Found 81ms
*** POSTS controller: ***
def
2008 Dec 10
3
rspecing rjs - form.reset(''form'')
Hello,
>
> I couldn''t find much info on this.
>
> How do you rspec this: page.form.reset("form")
>
> I looked in the have_rjs source code and I can''t find anything on form
> reset.
>
> Thanks,
>
> --
> Andrei
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 18
1
Unnecessary Gem modules loaded under Rails 1.1.2
All,
Rails 1.1.2
Win XP Pro
Rubyful Soup 1.0.4
htmltools 1.0.9
I am terribly confused as to what pulling in a gem does with respect to
how many modules get loaded at runtime.
I am using two gems in my app, Rubyful Soup and htmltools.
RubyfulSoup requires one module from the htmltools gem
(html/sgml-parser).
My app requires the RubyfulSoup gem.
When I started my app, something was causing
2006 May 19
0
Works in model but not in mixin
Disclaimer: RoR newbie. Using the acts_as_taggable plugin.
As an exercise I wanted to switch from the destructive TAG_WITH method
to adding tags while preserving the existing ones. On the surface this
seemed easy enough and eventually I got it working. However, the
following method:
def add_tags(list)
Tag.transaction do
Tag.parse(list).each do |name|
if acts_as_taggable_options[:from]
send(acts_as_taggable_options[:from]).tags.find_or_create_by_name(name).on(self)
else
Tag.find_or_create_by_name(name).on_unique(self)
end
end
e...
2001 Sep 30
3
UTF-8 stuff
Here's a propsed heavy-duty solution for your UTF-8 problems.
I'm including a patch in this message, but I'll put the new files on
my web site at http://rano.org/tmp/xiph_files.tar.gz
I've tested this by running vorbiscomment with and without
-DHAVE_ICONV=1 in vorbis-tools/share/Makefile. It seems to work.
Changed files:
acinclude.m4: Add a test for nl_langinfo(CODESET). This