daniel2d2art

Results issues of daniel2d2art

Setting alias for table: ``` a = Foo.arel_table a1 = a.alias("#{a.name}_1") a2 = a.alias("#{a.name}_2") inner_where = a1[:attr1].eq(a2[:attr1]) ``` just working on joins: ``` a.join(a2).on(a1[:attr1].eq(a2[:attr1])).to_sql ``` returns: ``` "SELECT FROM \"foos\"...

In application.rb says: # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" But we continue getting the error: "invalid multibyte char (US-ASCII)" It occurs in...

In application.rb says: # Configure the default encoding used in templates for Ruby 1.9. config.encoding = "utf-8" But we continue getting the error: "invalid multibyte char (US-ASCII)" It occurs in...

Migrating from RoR 3.0.7 to RoR 3.1.0, load fixtures left works $ rake db:fixtures:load RAILS_ENV=development rake aborted! PGError: ERROR: relation "foo" does not exist LINE 4: WHERE a.attrelid = '"foo"'::regclass...

Hi guys, When try to manage object from STI model in session, can't locate the definition class and crashes. This only occurs when the STI models are specified on the...

can't we add some custom helper to use in css.erb files we try to put some methods to Helpers/application_helper but they are not accesible from css.erb... in template output we...

The use case of this query is some normal, but no forms to traslate in "scope" type. Next both queries get the same result: "latest item of each group" We...

“Lazy” Lookup not working: t('.my_logo_alt_info') ) Needs full route: t('views.my_logo_alt_info') )%> Others for example link_to runs properly

actionview

If set_table_name specifies the same name but with diferent upper and lowercase combination don't use the epecified table_name continues with normalized rails table_name. All in uppercase or different name, then...

activerecord

seem that database.yml is not load on rake task. If we've an additional database conection, for example for a legacy ddbb. When execute "rake -T" for example gets the next...