Displaying 20 results from an estimated 36 matches for "short_description".
2009 Mar 09
2
rake:db:prepare Mysql::Error: #42000BLOB/TEXT column ' used in key specification without a length
I have a test environment running rails 1.2.3. I am just starting to
introduce testing into this project.
When I run a rake db:prepare. I see this message "Mysql::Error:
#42000BLOB/TEXT column ''short_description'' used in key specification
without a key length: CREATE INDEX ''short_description'' on cached_cars
(''short_description'')
The initial migration from the product displays this:
[]#rake db:test:prepare --trace
(in /var/www/matrix-1.7.18)
** Invoke db:test:...
2009 Jun 21
1
cannot do mass_assignment when inherited class ?
...g error when trying to create the elibrary instance
(rdb:21) @elibrary = Elibrary.new(params[:elibrary])
RuntimeError Exception: Declare either attr_protected or
attr_accessible for Elibrary, but not both.
params : "elibrary"=>{"title"=>"bingo three",
"short_description"=>"something new", "description"=>"<p>fsdfgdsg</
p>"}
Elibrary is declared as inherited from MediaItem, and attr are
declared accessible in MediaItem....
class MediaItem < ActiveRecord::Base
belongs_to :media_container
# Behaviours
ac...
2006 Jul 19
4
sorting and pagination
...OT of
questions answered, thanks alot everyone. Anyway my last ferret task is
too get the results sorted by a field called date_registered and have
this working with pagination.
here is what i''m doing at the moment:
################################
acts_as_ferret :fields=> [''short_description'',...,''date_registered'']
def VoObject.find_results(query,page)
sort_fields = []
sort_fields << Ferret::Search::SortField.new("date_registered",
:reverse => :false)
results2 = VoObject.find_by_contents(query,:num_docs=> 2000000,:sort
=>sort_...
2006 Nov 12
4
Include option type in gconf schema
...hat type of compiz option the key is. For example, say i want a
color picker for each color option the only way I can tell with gconf if it
is color is if it has a # at the beginning, but there could be string
option which also have a # at the beginning so is not reliable.
My proposal is that the short_description of each gconf key should contain
the option type
e.g.
/apps/compiz/general/allscreens/options/close_window_key short description
should be something like "compiz_key_modifier"
/apps/compiz/plugins/cube/screen0/options/skydome_gradient_end_color should
contain something like "compiz_...
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server
ActionView::Template::Error (You did not provide both required access keys.
Please provide the access_key_id and the secret_access_key.):
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2009 Feb 02
2
looking for help with NoMethodError: undefined method `key?' for #<String:0x4795488>
...esting/setup_and_teardown.rb:58:in `run''
---------------------------------
My entity model is dead simple at the moment-
class Entity < ActiveRecord::Base
end
My DB table (entities) has these fields-
id
created_at
updated_at
taxa_order
taxa_family
taxa_genus
taxa_species
common_name
short_description
description
it was created using this migration code-
create_table :entities do |t|
t.timestamps
t.column "taxa_order", :string, :limit => 127, :default
=> "", :null => false
t.column "taxa_family", :string, :limit => 1...
2006 Aug 28
1
stop words and /''s
...not working. It is mostly the stop words
ones. For example the "For Sale/Free/Swap" fails but works when "for" is
stripped out. I have read all the recent posts regarding this issue and
failed to get it to work in a clean way. I tried:
acts_as_ferret :fields=> [''short_description'',''section''], :analyzer =>
Ferret::Analysis::StandardAnalyzer.new([])
and rebuilt my index but same behavior as before. There seems to have
been alot of effort put into tracking down a solution to this problem so
has one been found that i''m missing? I'...
2006 Jul 14
3
Whitespace Issues
I am trying to build up a filtered search using the logic below.
bq = Ferret::Search::BooleanQuery.new
bq.add_query(Ferret::Search::TermQuery.new(Ferret::Index::Term.new("section",section.downcase!)),
Ferret::Search::BooleanClause::Occur::MUST)
filter = Ferret::Search::QueryFilter.new(bq)
@vobjects = VoObject.find_by_contents(search_input,:filter =>
filter, :sort
2006 Dec 14
12
Saving dates
Hi having trouble saving dates in my form i have the following in the
view
<%= date_select("details", "open_date") %>
and i have
@exhibition.open_date = params[:details][:open_date]
and then
@exhibition.save
All the other values form (not seen here) get saved but not the dates.
What am i doing wrong ?
--
Posted via http://www.ruby-forum.com/.
2007 Oct 16
2
Where override model attribute names?
OK, so I get that ActiveRecord determines model attributes through
reflection of the table schema. Handy for many cases, but not mine.
I need to override that and provide my own mapping of attribute names
to column names to use the mapped names throughout the application code.
I''ve been poking around looking for where in AR''s hierarchy I can can
inject this mapping, but
2006 Jul 09
3
acts_as_ferret.. what does it actually do?
...nyone use acts_as_ferret successfully in an application doing
more than just using find_by_contents? Thnaks in advance for any
replies/help
cheers
caspar
#####extract from model
require ''ferret''
class VoObject < ActiveRecord::Base
acts_as_ferret :fields=>
[''short_description'',''section'',''sale_category'',''sale_type'',''outcode'']
def VoObject.refine_search(search_input)
bq = BooleanQuery.new
bq.add_query(TermQuery.new(Term.new("section", search_input),
BooleanClause::Occur::...
2006 Sep 05
15
ferret finds ''tests'' but not ''test''
Hello all,
Quick question (possibly!) - I''ve got a few records indexed and doing a
search for ''test'' reports in no hits even though I know the word ''tests''
exists in the indexed field. Doing a search for ''tests'' produces a
result. I would have thought that ''test'' would match ''tests'' but no such
2006 Jul 27
1
Weird issue with editing data.
.../>
<%= error_messages_for ''knowledgebase'' %>
<!--[form:knowledgebase]-->
<p><label for="kb_title">Title</label><br/>
<%= text_field ''kb'', ''title''%></p>
<p><label for="kb_short_description">Short Description</label><br/>
<%= text_field ''kb'', ''short_description'', :size => "90" %></p>
<p><%=text_area ''kb'', ''details'', :cols=>"90" %></p>
<...
2011 Jun 09
0
ANNOUNCE: Puppet 2.7.0rc4 Available
...39;'t have to walk it multiple times
149a12f Maint: Fix ellipses for short descriptions
7688706 (#7563) DRY: Remove indirector boilerplate from individual faces
4662f4d (#7564) Finish templates
331d812 (#7561) Complete help text for all faces and actions
069a6b8 Maint: Add ellipsis to generated short_descriptions.
ebc642b (#6962) Add "arguments" method to help API
163ff6b (#7681) Add an acceptance test for resource refs with array
variables
9f6dec2 (#7681) Allow array variables as resource references
76ad2bb (#7507) Add exclude filter for ruby 1.9 spec failures
3682025 maint: move trap call to Si...
2007 Jun 28
0
Branch 'as' - 2 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
..._IS_NUMBER
+SWFDEC_AS_VALUE_IS_STRING
+SWFDEC_AS_VALUE_IS_NULL
+SWFDEC_AS_VALUE_IS_OBJECT
</SECTION>
diff --git a/libswfdec/swfdec_as_types.c b/libswfdec/swfdec_as_types.c
index 6b8f3a5..504245d 100644
--- a/libswfdec/swfdec_as_types.c
+++ b/libswfdec/swfdec_as_types.c
@@ -40,7 +40,7 @@
* @short_description: exchanging values with the Actionscript engine
*
* This section describes how values are handled inside the Actionscript
- * engine. Sice Actionscript is a dynamically typed language, the variable type
+ * engine. Since Actionscript is a dynamically typed language, the variable type
* has...
2007 Mar 16
0
5 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c
...intro for the new Enumerations section in the docs
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index fd528fa..b9bf7e9 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -79,6 +79,14 @@
*/
/**
+ * SECTION:Enumerations
+ * @title: Enumerations
+ * @short_description: enumerations used in Swfdec
+ *
+ * This file lists all of the enumerations used in various parts of Swfdec.
+ */
+
+/**
* SwfdecMouseCursor:
* @SWFDEC_MOUSE_CURSOR_NORMAL: a normal mouse cursor
* @SWFDEC_MOUSE_CURSOR_NONE: no mouse image
diff-tree 8e4bbb3208a40867f2ec0300598e00a03eea744f (f...
2007 Jul 13
0
12 commits - AUTHORS doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
...fdec_as_function.c
index f6e040d..466b9d3 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -30,6 +30,31 @@
G_DEFINE_ABSTRACT_TYPE (SwfdecAsFunction, swfdec_as_function, SWFDEC_TYPE_AS_OBJECT)
+/**
+ * SECTION:SwfdecAsFunction
+ * @title: SwfdecAsFunction
+ * @short_description: script objects that can be executed
+ *
+ * Functions is the basic object for executing code in the Swfdec script engine.
+ * There is multiple different variants of functions, such as script-created
+ * ones and native functions.
+ *
+ * If you want to create your own functions, you should creat...
2012 Mar 27
16
[PATCH 01/16] generator: Fix unescaped '<' and '>' in api descriptions
---
generator/generator_actions.ml | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 68a7bf6..fcf363f 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -4664,7 +4664,7 @@ This creates an ext2/3/4 filesystem on C<device> with
an external journal on
2012 Mar 28
1
[PATCH] Split gobject sources into 1 file per class
This patch replaces patches 14 and 15 from my previous series. The gtk-doc
output is now reasonable, and we can rely on an automatically generated
guestfs-sections.txt.
Matt
2007 Jun 28
0
Branch 'as' - 4 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...wfdec/swfdec_as_types.c
index 873a921..6b8f3a5 100644
--- a/libswfdec/swfdec_as_types.c
+++ b/libswfdec/swfdec_as_types.c
@@ -32,6 +32,67 @@
#include "swfdec_debug.h"
#include "swfdec_movie.h"
+/*** GTK-DOC ***/
+
+/**
+ * SECTION:SwfdecAsValue
+ * @title: SwfdecAsValue
+ * @short_description: exchanging values with the Actionscript engine
+ *
+ * This section describes how values are handled inside the Actionscript
+ * engine. Sice Actionscript is a dynamically typed language, the variable type
+ * has to be carried with every value. #SwfdecAsValue accomplishes that. Swfdec
+ * allow...