Displaying 20 results from an estimated 4000 matches similar to: "overriding .blank? method"
2009 Aug 28
4
Objects in Views
Hi everyone,
I have recently experienced a strange behavior (strange from my knowledge)
in rails.
In my controllers ''new'' action, I am creating a few instance variables in
the following manner :
@controllerModel = ControllerModel.new
@model1 = Model1.all
@model2 = Model2.all
in my ''new'' view, I am using the @controllerModel to create the form for new
and I
2009 Aug 25
5
uninitialized constant
API-> hello_message_api.rb.
class HelloMessageApi < ActionWebService::API::Base
api_method :hello_message, :expects => [{:firstname=>:string},
{:lastname=>:string}], :returns => [:string]
end
controller ->
class HelloMessageController < ApplicationController
web_service_api HelloMessageApi
web_service_dispatching_mode :direct
wsdl_service_name
2009 Nov 03
4
Rails in css ..
Hello all,
Actually i am having a small problem.. googled it but did''nt find any
clue..
So what i want to do is that i want to insert ruby variable in css style
property.. as like ..
<div class="abc" style="left: <%= @var * 6 %> px;">
But this is not working.. I am doing it because i want to keep the left
property dynamic .. :) Is there any possible way to
2009 Aug 25
28
Anything but Aptana
Not trying to get into a "What''s a good IDE" here, BUT....On
Windows....RadRails never cut it. Under Aptana, it''s a terrible joke,
and I''m sick of losing so much time waiting not only for this thing to
initialize, but the hanging and crashing I go through is killing me.
Please, someone....point me to a decent, lightweight IDE. All i want
is syntax coloring.
2009 Nov 26
6
will_paginate don't work on jruby platform
Hello all,will_paginate don''t work on jruby platform,
the Model.paginate find works ok, accepts all kinds of params,
this is config.gem
config.gem ''will_paginate'', :version => ''2.3.11'', :source =>
''http://gemcutter.org'',
but <%= will_paginate @collection %> doesn''t work
it always produce nil(so nothing on page).
2009 Dec 05
7
ActionMailer dont function with JRuby?
I have application that i send email normal with native ruby.
But when i execute the sample application with jruby, it dont send email and
dont get error.
What can be wrong?
--
Atenciosamente,
Paulo Coutinho.
Blog: www.prsolucoes.com/blog
Site: www.prsolucoes.com
Msn: paulo-QE/7f1ia5mR0ubjbjo6WXg@public.gmane.org
--
You received this message because you are subscribed to the Google Groups
2010 Apr 26
11
Rails I18n
I was just wondering about locales and .yml files. Is it better to
store the multilanguage strings in .yml files than in databases? And
if yes, why?
I was also wondering how rails are loading this files (for example, I
have 4 languages in my web app, each has her own .yml file, will my
rails app loads all the files in ram and then it will call each
variable inside my web app? Or something else?)
2009 Dec 20
1
mdadm help
Hey List,
So I had a 4 drive software RAID 5 set up consisting of /dev/sdb1,
/dev/sdc1, /dev/sdd1 and /dev/sde1. I reinstalled my OS and after the
reinstall I made the mistake of re-assembling the array incorrectly by
typing "sudo mdadm --assemble /dev/md0 /dev/sdb /dev/sdc /dev/sdd
/dev/sde" in a moment of stupidity.
Obviously this didn't work and the array wouldn't mount and
2010 Jan 23
7
Gmail problem
Hi,all :
There is gmail drive for windows
platform<http://www.linuxforums.org/forum/#>where the person can
access his gmail storage space as a drive.
Do we have something similar on Linux?
Means is there any software that will allow the person to 'mount' the gmail
storage and say 'copy/paste' from his system to the gmail account?
Thanks ~
-------------- next part
2011 Jun 08
2
MySql2 adapter hangs in Rails3 on Windows XP
Previously we''ve used Rails2.xx with no problems and we''re trying to
upgrade to ruby 1.9.2p180 and Rails 3.0.7 with pik to keep ruby
versions separate.
After some initial difficulties with MySql2 gem installation,
following <a href=http://rorguide.blogspot.com/2011/03/installing-
mysql2-gem-on-ruby-192-and.html>these tips</a> got mysql2 v0.2.7
installed.
My problem
2010 Feb 15
5
Hardisk cloning for centos-5.3
Hi,
I want to clone my hardisk containing the centos-5.3 OS and its swap
region on to new raw hardisk via network
either through ssh, tftp or ftp. How do i do that ?
Is there any Tool for that or will DD command be sufficient.I know that dd
command will have to be used on hardisk
with already existing partitions and not on raw disk.
Regards,
Premraj M
Disclaimer : This message is
2009 Dec 02
14
root_path and root_url undefined
Hi all,
I''ve just started working on another RoR project after a couple of months
away. I''m having trouble with named routes, specifically root_*
In previous apps I''ve used root_path and root_url without any problems, but
in this project (2.3.2 - the same as my last project where I used it) it
comes up undefined.
I''ve double and triple checking my routes.rb,
2009 Nov 03
12
Mysql::Error: query: not connected
Hi there!
I am PHP developer and trying to learn ROR. Currently I am building my
first Rails website (OS X Snow Leopard, TextMate) and decided to
switch from sqlite to mysql. After many-many hours of searching the
internet I managed to install mysql gem. Now I get this error when I
try to run rake migrations:
rake aborted!
Mysql::Error: query: not connected: CREATE TABLE `schema_migrations`
2009 Aug 31
3
Migration - wrong SQL statement is created
Hi,
I am doing my first steps with RoR and I have the following problem:
I execute my migration file with the following content on a
MySQL-database via Rake:
<code>
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.integer :id
t.string :username, :size => 100
t.string :password, :size => 100
t.string :email, :size
2008 Jul 10
6
Uppercase all row columns
Hi.
I have to convert the contents of all columns to uppercase before
creating a row. Is there an easy way to accomplish this so I don''t
have to go one column at a time and upcase! it?
Thanks.
Pepe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2008 Jul 04
4
Routing and Parameters
Greetings. I have a route something like this:
map.calendar ''/tasks/:year/:month'',
:controller => ''tasks'',
:action => ''calendar'',
:year => /\d{4}/,
:month => /\d{2}/
(Ignore the obvious problems of invalid data.)
I''m trying to create a form that will allow my users to navigate from
one month/year to the next.
2008 Mar 06
4
Active Record Question
Hi-
Say I am returning some collection of DateTime items and I only want
to compare the month. Is there a way to do this directly in the find?
Something like this...
@coll = Collection.find(:all, :conditions => ["date.month
= ?",Time.now.lat_month])
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2009 Dec 10
3
.htaccess and ?
Hi,
I'm trying to write .htaccess Rewrite rules and it doesn't seem to
work for me:
Match the string between the domain and the question mark: ?
http://www.abc.com/blog:long-name-of-page?action=diff and I want to
redirect it to: http://www.abc.com/blog:long-name-of-page
Any suggestion?
Thanks
2009 Dec 24
4
NoMethodError
Hi,
In a few words, can someone explain to me the NoMethodError. Googling
for answers will get you to something but a direct answer from experts
will give you something.
NoMethodError in Book#new
Showing app/views/book/new.html.erb where line #4 raised:
undefined method `title'' for #<Book id: nil, created_at: nil,
updated_at: nil>
Extracted source (around line #4):
1:
2010 Jul 09
6
deployment question: has anyone deployed w. sqlite?
Hi,
I''d like to make a demo version of my app available, but I''m not ready
to get into database stuff, yet. Has anyone ever deployed with sqlite
(what I used to develop my app)? If so, what hosting service(s) would
you recommend?
Thanks,
Lille
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this