Hi Railers,
I have put a simple validation
validates_length_of :subject, :maximum => 10, :message => "pick a
shorter subject"
If i have more than 10 characters in subject, the message is not being
sent;
but on the contrary, when i click on send button it says message sent
successfully(a custom m
Hi,
I wanted to know where validations placed are most effective: Model,
View or controller.
In my application i enter data in a text box and if it is greater than a
given value (which varies depending on choice), it should throw an error
message and data shouldn't be saved.
Thanks,
Premanshu
-
Hi Railers,
I'm trying to import my project into Radrails but i'm getting errors
like
"Problems were encountered during import: Could not read from source
when writing file 'C:\railsproject\myproject\.metadata\.lock'
The process cannot access the file because another process has locked a
portion
Hi Railers,
How to insert an image saved at C:/Rails/asd.jpg into a pdf
I tried
logo = "#C:/Rails/asd.jpg"
pdf.image logo
It is giving me an error: image file is an unrecognised format
may the railers throw some light to help me!!
Premanshu
--
Posted via http://www.ruby-forum.com/.
--
Yo
The reason is because a lot of changes had happened with rails 3.0
You can migrate your code to the new version using tools
available..Probably this may help:
http://www.ruby-forum.com/topic/218344#new
Premanshu
--
Posted via http://www.ruby-forum.com/.
--
You received this message because y
Hi Railers,
How to begin debugging an existing application on Radrails?
I want to change few features of an application and hence need to know
the code flow..
Pls guide
Premanshu
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google G
Hi all,
Thanks a ton for the suggestions..It has finally worked...The problem
was with the yaml file and spaces..
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send em
Tons of thanks to you Max and the other Railers: Rajeev and Colin.
Its working with two spaces in front of every line. And I added the
password as well. And a final enter after entering the password.
I'm so happy..
again my thanks
Premanshu
--
Posted via http://www.ruby-forum.com/.
No luck :(
I have attached my yml. There is space at the beginning of each line
(from encoding onwards). There is space between : and the corresponding
value. There is one space at the end after password:
>From the early morning this rake has raked my brains out...Pls help..And
many many thanks
Hi All,
rake db:create is not working. It is giving an error like
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
syntax error on line 17, col -1: `'
My yml file reads like:
development:
adapter:mysql
encoding:utf8
reconnect:false
da
I had provided a space as well.
The output is :
rake aborted!
syntax error on line 8, col 15: `n'
C:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load'
C:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load'
C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:902:in
`databas
e_configuration'
C:/Ruby18
C:\Ruby187\rails\accounts>rake db:migrate --trace
(in C:/Ruby187/rails/accounts)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
syntax error on line 8, col 15: `¼+?'
C:/Ruby187/lib/ruby/1.8/yaml.rb:133:in `load'
C:/Ruby187/lib/ruby/1.8/yaml
The output is all same except:
rake aborted!
syntax error on line 8, col 15: `n'
The yml file at [application_name]/config/ is as follows:
development:
adapter:mysql
encoding:utf8
reconnect:false
database:accounts_development
pool:5
username: root
password:
host:localhost
--
Posted via
I have provided the spaces as well but no luck.
The error this time though is :
rake aborted!
syntax error on line 8, col 15: `Æ'
Premanshu
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To
@Rajeev,
Pls find the results
C:\Ruby187\rails\accounts>rake db:create --trace
(in C:/Ruby187/rails/accounts)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
rake aborted!
syntax error on line 2
I m using ruby 1.8.7 on rails 2.3.5 with mysql 5.0 on windows.
C:\Ruby187\rails\accounts>rake db:create
(in C:/Ruby187/rails/accounts)
rake aborted!
syntax error on line 2, col 0: `encoding:utf8'
The following is the yml file i'm using
development:
adapter:mysql
encoding:utf8
reconnect:false
data
Hi All,
Re phrasing my earlier doubt.
I installed radrails but could not use it as i dont understand what help
it has to offer me. If i have to change the view of my application say
for example :
i will change a label named "School Name" to "College Name" will I be
able to change it using rad
Hi Railsers,
I want to transport my codes written using ruby 1.8.7 on rails 2.3.5 to
ruby 1.9.2 on rails 3.0.0
Any help would do wonders...
Regards,
Premanshu
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rail
Hi All,
Willing to know if by using Editors, will we able to modify things(like
labels,etc) on the view layer. Or is it safer to change them using
individual files in the app/views folder ??
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
@Peter, Mark, Marnem: Thanks guys for the posts
I have kick started my first project.But on windows and that on a
sqlite3 db. I tried hard to get mysql but somehow its not willing to
dance with the rails on Windows platform. But still I would try out my
luck with JRuby on windows and later on if
Hey Matt,
Are you using RoR on Windows platform and MySQL as the db?? Curiously !!
I'm using the same and have troubles starting with my first application
in RoR..Even I'm a newborn to Ruby on Rails
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are sub
>
> But since you're just starting off with Rails, I would advise you to
> simply run a Ubuntu Linux virtual machine (or even completely switch
> to Linux right away) instead of frustrating yourself with Windows
> problems and avoid even more issues with native library gems in the
> future.
>
Hi
On bundle install i m getting these errors:
Installing mysql2 (0.2.4) with native extensions
C:/ruby/lib/ruby/1.9.1/rubygems
/installer.rb:483:in `rescue in block in build_extensions': ERROR:
Failed to bui
ld gem native extension. (Gem::Installer::ExtensionBuildError)
C:/ruby/bin/ruby.exe extco
Thanks Rajeev and Max.
But how do i know if the server has started??
The output says a lot of things but not if the server has started
May you guys pls send me links to the latest docs for Rails 3.0?/
I'm totally new to RoR..
I tried with the Head first books but cudn't get thru!!!
Thanks,
Pre
Hi,
I have installed ruby 1.9.2, rails 3.0.0, mysql 5.1, Aptana Radrails,
Java,
On creating a new application using the below command line--
C:\ruby\bin\newproj>rails new newproj -d mysql
I'm getting these:
create
create README
create Rakefile
create config.ru
cre
25 matches
Mail list logo