Displaying 20 results from an estimated 5000 matches similar to: "date validation in rails 3"
2009 Jul 13
12
.html/.html.erb/.rhtml to PDF
Hello All,
I wanted to convert .html file into .pdf.
is there any rails plugin ??
Thanks,
Sandip R~
--
Ruby on Rails Developer
http://sandip.sosblog.com
http://funonrails.wordpress.com
www.joshsoftware.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2009 Sep 29
10
rails 2.3.3 upgrade shows error
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.<<
any ideas ?
Application works fine with rails 2.1.0
Sandip
--
Ruby on Rails Developer
http://funonrails.wordpress.com
www.joshsoftware.com
http://brandpotion.com (Latest project released)
--~--~---------~--~----~------------~-------~--~----~
2009 Jun 05
6
rails 2.3.2
Hi all,
I am using rails v.2.3.2 and if I put following line to my
ApplicationController:
include LoginSystem
and I moved my login_system.rb to lib folder:
module LoginSystem
protected
def is_logged_in?
@logged_in_user = User.find(session[:user]) if session[:user]
end
def logged_in_user
return @logged_in_user if is_logged_in?
end
def logged_in_user=(user)
if
2011 Mar 18
3
webapplications with rails+geokit
Hi all
Anybody knows any webapplictions presently using geokit plugin with
rails 2.x or 3.x ? If yes pls send me the url pls.
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2009 Dec 28
3
Mysql::Error: Lock wait timeout exceeded; try restarting transaction
Hello all
I am using acts_as_ferret in user model.
Error Message:
--------------
ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded;
try restarting transaction: UPDATE `users` SET `updated_at` = ''2009-12-28
14:31:50'', `active_till` = ''2009-12-28 14:31:50'' WHERE `id` = 21
Where:
------
calls#audit
2011 Mar 21
1
Trouble with simple R list concatenations
PROBLEM How can I concatenate the following lists into ONE LIST WITHOUT
the unhelpful message "operator is invalid for atomic vectors"? Combine
as a data frame?
EXAMPLE
Birth_Date <- NULL
Birth_Date[1:3] <- c("01/17/1939","01/17/1949", "01/17/1959")
Later_Date <- NULL
Later_Date[1:3] <- c("01/17/2009", NA, NA)
Names
2009 Jun 08
3
Will Pagination links getting not behaving as i wanted.
Hello All,
I have will pagination links in index view which works fine.
but when i performing some other action and replacing list view
that time pagination links i am supposed to be for index action.
but they are not......links goes to last performed action.
You have any idea how to fix this problem ?
NOTE:
i am updating list after creation of resource record that time pagination
links goes
2009 Jun 05
15
Rails Code Indentation
Hi All,
Rails code must be readable, formatted and well indented.
I wanted to do indent code in my previous projects.
Is there any built in rails plugin/gem that can help me to
indent my existing code.
Any ideas will be really appreciated !
NOTE: Please don''t suggest editor plugins.
Thanks & Regards,
Sandip R~
--
Ruby on Rails Developer
http://sandip.sosblog.com
2009 Jun 04
4
ActionController::InvalidAuthenticityToken & :before
I have a form that submits search criteria and while it is processing I
wanted to use a js function to indicate:
<% form_remote_tag :update => ''mainbody'', :url => {:action => ''search''},
:before => "wait_message(''mainbody'',''S E A R C H I N G'')" do%>
wait_message() executes but then when
2009 Jul 28
1
[PAPERCLIP] How to avoid image crop in paperclip styles
Hello All,
I am using rails paperclip plugin for image upload.
my image has different styles and the original image gets cropped
while processing styled image.
I dont want image to be cropped.
Is there any way ????????
Thanks,
Sandip R~
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Nov 28
2
Dynamic find_by method returning nil in a class method
I have a user Model with a class method that I am using to do some
authentication
basically something like this
class User < ActiveRecord::Base
attr_accessor :password
attr_accessible :first_name, :last_name,
:email, :birth_date, :sex,
:password, :password_confirmation
email_regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
validates :first_name,
2007 Nov 03
3
Birthdate validation
Hello everyone,
I''m almost cracking my head trying to do this birthdate validation. It
turns out that I can only accept users with at least 18 years old and
I''m trying to validate it writing this code on my user.rb fil at app/
models
class User < ActiveRecord::Base
validates_presence_of :full_name
validates_presence_of :street_address
validates_presence_of :city
2011 Oct 02
4
Aggregated attribute changed but _was is changed too. So nothing is update in database.
(Frenchy, sorry =) )
Hi everyone, i''ve got some troubles with aggregated attribute.
I created a point and path class which receive postgresql point and
path type data. Path object contains an array of point object.
I''m currently working on a "hunting" module in web browser based game,
and i need a crontab executed every n minutes to move the character on
the map.
2006 Jan 14
11
accessing models from migrations
Ok, so now Users need to be associated with Organizations. I''ve
created a migration and added a ''organization_id'' column to the users
table. I want the default organization_id to be the first
Organization. So I have :default => Organization.find(:first). But
it''s complaining about not being able to find the constant
''Organization''.
Any
2012 Jan 18
3
Cannot redirect to nil!
I need some help please..
when I created web application about books market, i create a cart and
using test the message error appear like this on rake test:functionals
LineItemsControllerTest
> test_should_create_line_item
> ERROR
> Cannot redirect to nil!
and also appear on web side, thats error told that "Cannot redirect to nil!"
Then i was checking the code,
2012 Feb 14
4
What I'm doing wrong, has_and_belong_to_many
Hello, I''m trying to insert into my migrate but when I try on rails
console this error shows:
1.9.3-p0 :001 > group = Group.new
=> #<Group id: nil, name: nil, description: nil, created_at: nil,
updated_at: nil>
1.9.3-p0 :002 > group.name = "Group Name"
=> "Group Name"
1.9.3-p0 :003 > group.description = "Description"
=>
2006 Jan 22
23
calculate users age
i know it''s probably really simple, how do i work out someone''s age if i
have their d.o.b. stored as a date in my db.
cheers
--
Posted via http://www.ruby-forum.com/.
2011 Dec 13
1
Trouble setting up Rails with a JS runtime environment
Hi all,
I''m using Ubuntu 11.10 and the terminal to install and run Rails. Here
is the process I''ve taken so far to setup Rails:
> download and install Ruby 1.9.2 and Rails 3.1.0
-- I did this using ''sudo apt-get ruby1.9.1'' and ''sudo gem install
rails''
> I made a new rails app using ''rails new path/to/app''
> I went
2012 Feb 06
3
Bundler - how to re-install all gems after os update?
I had a working Rails setup using RVM on Ubuntu 11.10 with /home on a
separate partition. I installed Ubuntu 12.04 (Alpha) on the root
partition, leaving the home partition unchanged. I now find that some
things don''t work, I think due to the fact that the system has been
updated and versions of libraries have changed. For example I get:
$ rails c
2012 Jan 21
16
Installing rails on Ubuntu
Hello, I''m trying to install the rails on ubuntu 11.10, but when I put
the command
felipe@Felipe:~/Downloads/rubygems-1.8.15$ sudo gem install rails
--no-r1 --no-rdoc
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
felipe@Felipe:~/Downloads/rubygems-1.8.15$