search for: add_category

Displaying 7 results from an estimated 7 matches for "add_category".

2006 Apr 14
2
Nested AJAX remote_form in form?
...<%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'', :url => { :action => ''add_category'' } %> <%= text_field_tag ''new_price'' %> <%= submit_tag ''Add'' %> </div> <%= submit_tag "Create" %> <% end_form_tag %> But I know for sure that this isn''t going to work due to the...
2007 Jul 22
4
single table inheritance problem
...try to add categories to my wikis with @wiki = Wiki.find(params[:wiki]) @category = Category.find(params[:id]) @wiki.categories << @category unless @wiki.categories.index(@category) I get the VERY unhelpful error messages telling me ActiveRecord::AssociationTypeMismatch in WikisController#add_category Category expected, got Category This error does not appear if do not call the list_pages method before. If I change the line PageWiki.find(:all) to Wiki.find(:all, :conditions =>"type=''PageWiki''") it all works. Does anybody have any ideas what happens here? Thanks...
2006 Jan 04
2
Updating Attributes in a HABTM Join Table
...table "categories_items" between them. If an item is joined to a category once, no problem, we create the join. But if an item is joined to a category more than once, I want to record the subsequent hit in a field called "cat_count" which exists in the join table. def add_category( category_id_as_str ) category = Category.find(category_id_as_str.to_i) if self.categories.include?(category) old_count = self.categories.find(category.id).cat_count.to_i self.categories.delete(category) else old_count = 0 end self.categories.push_with_attributes(category, :cat_count =...
2018 Jan 29
1
Dovecot 2.3.0 assertion failure on LMTP delivery
...set_name = 0x7f29785bf8d0 <event_passthrough_set_name>, set_source = 0x7f29785bf930 <event_passthrough_set_source>, set_always_log_source = 0x7f29785bf970 <event_passthrough_set_always_log_source>, add_categories = 0x7f29785bfb00 <event_passthrough_add_categories>, add_category = 0x7f29785bfb70 <event_passthrough_add_category>, add_fields = 0x7f29785bfe80 <event_passthrough_add_fields>, add_str = 0x7f29785bfcc0 <event_passthrough_add_str>, add_int = 0x7f29785bfd40 <event_passthrough_add_int>, add_timeval = 0x7f29785bfdd0 <event_passthrough_...
2007 Feb 25
5
Dynamically uploading a list that's already in a form
I have the classic case of: Posts, and Categories. When the user submits a post, he has a drop-down list of categories. I want to put a "Add category" link next to the list of categories. This is already inside a form, so a "link_to_remote" that creates a small AJAX form inside the "submit post" form will not work because that will mean to embed a form in another
2018 Jan 27
2
Dovecot 2.3.0 assertion failure on LMTP delivery
Hi, We are seeing a frequent assertion failure on LMTP delivery with 2.3.0. This only appears to happen on CentOS/RHEL 7. Jan 24 08:30:58 smoker-devautomerge-c7-1 dovecot: lmtp(29540): Panic: file lib-event.c: line 148 (event_unref): assertion failed: (event != current_global_event) Jan 24 08:30:58 smoker-devautomerge-c7-1 dovecot: lmtp(29540): Error: Raw backtrace:
2023 Apr 04
5
[RFC PATCH 0/5] fstests specific MAINTAINERS file
I think I might be mad to include that many mailing lists in this patchset... As I explained in [PATCH 1/5], fstests covers more and more fs testing thing, so we always get help from fs specific mailing list, due to they learn about their features and bugs more. Besides that, some folks help to review patches (relevant with them) more often. So I'd like to bring in the similar way of