Displaying 18 results from an estimated 18 matches similar to: "schema_info always wants to be 3, even when set to 7"
2008 Jul 17
4
A Mongrel parsing bug: "&" and "&"
When using url_for to send path to a script (such as with
auto_complete), multiple params are joined with the "&" code. For
example:
text_field_with_auto_complete :blog :post, {}, { :posts_path(:a =>
1, :b => 2), :method => :get }
Produces this script:
var blog_post_auto_completer = new Ajax.Autocompleter(''blog_post'',
2006 Aug 16
1
Creating a comments system for multiple types of content
Hi all
My site has news entries, it has a party calendar and it has a blog.
Now I''d like to create a commenting system that in fact is quite simple,
but I wanna use it for all these 3 types of content.
My question: how can I do that? I maybe could add an association to all
three types in the comment model:
class Comment < ActiveRecord::Base
belongs_to :news_item
belongs_to
2006 Sep 05
0
rake craziness with Migrate as a dependency
Hi everyone,
For one of our projects we have a need to deploy and maintain a demo.
As a result I''ve attempted to setup a set of rake tasks for the job.
My goal is have one rake task called "deploy_demo" which purges the
database, migrates to the current schema, and loads the db from a set
of fixture files in a specified location.
I''ve written two new tasks the perform
2009 Feb 22
2
Mysql error unknown column 'columns.user_id'
Had this error when trying to add comments to another user''s photo.
ActiveRecord::StatementInvalid in User photosController#show
Mysql::Error: Unknown column ''comments.user_id'' in ''on clause'': SELECT
photos.`id` AS t0_r0, photos.`user_id` AS t0_r1, photos.`title` AS
t0_r2, photos.`body` AS t0_r3, photos.`created_at` AS t0....
I did create a user_id
2008 Apr 03
3
Branchable migrations -- A plugin to let you organize your migrations
I just put a new plugin named branchable_migrations on Github.
Branchable migrations lets you separate your migrations into
"branches" (i.e., a director under db/migrate) that each have their
own version. Using the forthcoming UTC timestamped migrations and
this plugin, you can separate migrations by table or feature. Doing
so should alleviate many of the problems that seem to pike up
2012 Jun 03
1
Curso introducción a R
Paralelamente al curso propuesto por Juanjo Gibaja y Carlos Gil Bellosta,
el R Users Group de Barcelona (RUGBCN) conjuntamente con el grupo de
estudiantes de la facultad de sociologia de la UB ofrecemos un curso de
introducción a R (presencial en nuestro caso) para aquellos que quieran
aprender R desde 0.
Para más información visitad la página
http://rugbcn.wordpress.com/2012/05/28/601/
Os
2007 Feb 01
4
Automatically Indexing Associated Models
PROBLEM
I have two models, Blog and BlogComment. When a blog is initially
created, it has no comments. Upon creation, the title and body are
automatically added to the ferret index and directly searchable.
However, when a comment is added to a blog, that comment does not get
added to the index and is therefore not ferretable. The desired behavior
is that when a comment is added to a blog, that the
2006 Apr 01
3
Gracefully degrading Ajax AND Drying up actions
Still a semi-newbie, but so far I''ve managed to solve most things with a
bit of help from the Agile book, some googling around, and a bit of
trial-and-error, but I''m really stuck with this one (very much an Ajax
newbie):
I know how to gracefully degrade an AJAX newpost type call so it can
appear inline or (for those without JS support) go to a new page (put an
":href
2010 Mar 04
25
how to share variables in data migrations (up/down)
hi there,
How do we share variables in a given data migration?
For example,
the code below fails to work because "statuses" don''t seem to be in
scope for both up and down.
class AddDefaultValuesToStatuses < ActiveRecord::Migration
statuses = [
{
''details'' => ''details'',
},
{
2012 Jun 01
5
Curso de R básico no presencial y gratuito
Hola, ¿qué tal?
Juanjo Gibaja y yo hemos organizado un curso de R básico, no
presencial, colaborativo y gratuito dirigido a aquellas personas que
quieren introducirse en el mundo de R.
Para más información, pueden consultarse los dos siguientes enlaces:
http://www.datanalytics.com/blog/2012/06/01/curso-de-r-gratuito-no-presencial/
2006 Sep 14
0
Lost default value of timestamp field.
I''m using postgresql, I found some problems when running unittest.
file: db/migrate/001_create_post.rb:
--------------------------------------------------------
class CreatePosts < ActiveRecord::Migration
def self.up
execute <<-EOS
create table posts (
id serial not null primary key,
title varchar(255),
created_at timestamp not null
2006 Aug 17
0
super-newb needs help with has_many and other things...
I am brand new to oop and am having a difficult time getting my head
around some ruby stuff. In specific, I am trying to create a library
style app that lists topics, articles and comments. I have a table
called topics, a table called articles and a table called comments. My
models, controller and view are all listed below. What I want to happen
is to have the list view list each topic along
2008 Jan 05
5
multi-app merb
Ezra,
I love merb, especially because it''s keeping the things that Rails does
well and improves on things that Rails hasn''t done so well.
One of my biggest pain points with Rails has become multi-app
integration. A lot of web sites consist of multiple apps (e.g. a core
site, a forum, a blog/cms, etc.). Doing this sort of thing is very ugly
and inefficient with the current
2006 Jan 23
5
Undefined method error
Hi everybody,
Small problem. I get this error:
undefined method `all_categories'' for BlogCategory:Class
Code of BlogCategory class is:
class BlogCategory < ActiveRecord::Base
has_and_belongs_to_many :blog_posts
validates_presence_of :name
validates_uniqueness_of :name
# Return all categories ordered by name
def all_categories
find :all, :order =>
2008 Jan 11
0
Wine release 0.9.53
This is release 0.9.53 of Wine, a free implementation of Windows on Unix.
What's new in this release:
- RunOnce and Run entries now executed on startup.
- Beginnings of support for emulated disk devices.
- Many Richedit improvements.
- Nicer looking color dialog.
- Lots of bug fixes.
Because of lags created by using mirrors, this message may reach you
before the release is
2006 Sep 07
6
form_for - Child object - how to set parent id
Hi All,
I am just trying to learn ruby/rails so please don''t flame me if this is
a stupid question.
As a learning project I decided to create my own blog using ROR. I have
created a controller that shows paged blog entries, and below each blog
is a list of comments along with a form alowing the user to add a new
comment.
To create the form for the comment entry I used form_for
2010 Feb 19
0
Wine release 1.1.39
The Wine development release 1.1.39 is now available.
What's new in this release (see below for details):
- Support for registry symbolic links.
- Many MSI fixes.
- Build process improvements.
- MSXML cleanups and fixes.
- A number of MSHTML improvements.
- Various bug fixes.
The source is available from the following locations:
2009 Jan 30
0
Wine release 1.1.14
The Wine development release 1.1.14 is now available.
What's new in this release (see below for details):
- Various bug fixes for Internet Explorer 7.
- Many crypt32 improvements, including new export wizard.
- Better support for windowless Richedit.
- Improvements to the print dialog.
- Many fixes to the regression tests on Windows.
- Various bug fixes.
The source is available