*link_to GOOGLE, http://www.google.com;, **:class **=* *_blank*
On Saturday, December 8, 2012 9:15:00 AM UTC+2, Avi wrote:
Hello All,
I have a link. Which I want to open as a new window :-
%= link_to Google, https://www.google.com;, :popup =
Alson you could just use where:
@user = User.where(:id = params[:user_id]).first
On Wednesday, June 20, 2012 3:29:25 AM UTC+3, John Merlino wrote:
Hey all,
I saw this piece of code:
@user = User.find(params[:user_id]) rescue nil
why rescue with a nil here? If the user is not found,
gem update --system
On Saturday, March 31, 2012 6:00:19 AM UTC+3, Ruby-Forum.com User wrote:
I'm trying to install Ruby on Rails on Ubuntu 11.10, but receiving this
error:
$ sudo gem install rails
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve
Can you take calm and wait couple days..
Tomorrow should be 3.2.3 final release =_)
On Thursday, March 29, 2012 10:44:25 AM UTC+3, Abram wrote:
Right, the code below should explain everything. This is taken from
ubuntu's console. As you can see I can't seem to update my rails
version. Yes, I
Seems you have problem with some dependence gem.
Can you show output of:
gem install -V mongrel
On Thursday, March 29, 2012 6:49:24 AM UTC+3, Loganathan Sellappa wrote:
HI All,
I had installed the ruby 1.8.7 with patch level 253 successfully on my
ubuntu 10.04, but while installing ruby
Hmm..
What gives this command?
rvm current
Have you tried require commands from ruby console(irb) ?
On Saturday, March 24, 2012 12:34:57 AM UTC+2, Ruby-Forum.com User wrote:
Hi Alex,
changing it to require 'action_pack' worked.
But other gems has the same issue -
# ./test.rb
1. You sure that actionpack is installed?
2. Instead of
require 'actionpack'
use:
require 'action_pack'
On Friday, March 23, 2012 5:17:10 AM UTC+2, Ruby-Forum.com User wrote:
Hi Alex, thanks a lot for some informative advice.
I tried those things. Still no luck :/
# env | grep -i
First.. paste in your file:
require 'rubygems'
before another require's:
+
Use
require 'action_pack'
insted of deprecated call 'actionpack'.
On Mar 22, 2:35 am, Ruby User li...@ruby-forum.com wrote:
I seem to have correct include path, but a lot of gems can't be loaded
via required. What
Heh.. seems you have problem with RVM load?
As your RVM installed in systemwide maner
check that your `$HOME/.bashrc` file have this line at the end:
source '/usr/local/rvm/scripts/rvm'
If not then add and reload terminal. Then..
1. Navigate to folder with your script and type that:
God damn.. c'mon..
activesupport (3.2.2, 2.3.5)
For what you're using rvm? for collecting branch of gems version in one
gemset?
Remove 3.2.2 version.. and ensure that you have installed rexml lib.
On Thursday, March 22, 2012 11:04:56 AM UTC+2, Ruby-Forum.com User wrote:
I'm install ruby 1.8.7
sudo rake db:create
Why you running it with `sudo`?
Just try like that:
bundle exec rake:db create
On Feb 4, 12:54 pm, Phil Dobbin phildob...@gmail.com wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi, all.
I'm trying to run an intial rake to create my databases on a Rails
What outputs this one?
gem list -d rails
On Feb 1, 9:54 pm, Steve steve21...@gmail.com wrote:
Very strange problem: Ton's of ruby process just running simple
command rails --version or rails new test1
. I try to run this simple command
rails new test1 -- this suppose to be create a new
Add this lines to your Gemfile and run bundle
gem 'rake', '~ 0.9.2.2'
gem rdoc, '~ 3.12'
On Feb 5, 6:41 pm, soldier.coder geekprogrammer...@googlemail.com
wrote:
I'm running Rails 3.0.1 and Rake 0.9.2.2 and when I run Rake I get
these warnings:
WARNING: 'require 'rake/rdoctask'' is
Can you provide info from log file when this action performing ?
+
Check validations in your model and what params you getting in
`params[:user]`.
On Jan 24, 8:32 am, Kapil Kaligotla kapil.kaligo...@magikminds.com
wrote:
I am using rails 3.0.10, in that i had created users using devise and
i
Kamal, this might be helpful:
$ rvm get head
$ rvm remove 1.9.2
$ rvm reload $ rvm pkg install readline
$ rvm install 1.9.2
On Jan 14, 11:12 am, Colin Law clan...@googlemail.com wrote:
On 13 January 2012 18:02, Kamal kamalredd...@gmail.com wrote:
Hi, I am a newbie to Ruby and I have
Add to your Gemfile:
gem 'mysql'
then run `bundle`.
On 14 янв, 17:25, Erwin yves_duf...@mac.com wrote:
As I need to upgrade a Rails app to 3.1 , I am trying to deploy it on
a remote production server ( Linux Debian, after installing Rails
3.0.9 under rvm with all needed gems including mysql2
dv abhi,
Can you provide more info?
Have you tried to run `sudo services cron restart` and what output it
gives?
On 10 янв, 14:58, dv abhi li...@ruby-forum.com wrote:
And final point restart cron
sudo services cron restart
I am using Ubuntu 10.04,i tried running this code sudo /etc/init.d
Whenever just helps to use cron with simple ruby syntax.
To make it run cronjobs. You need to:
1. Exec in your project folder:
wheneverize .
This will create config/schedule.rb file.
2. There type some action needed to be done with cron:
every 3.hours do
rake my:rake:task
end
3. Save it and
Use app templates:
http://guides.rubyonrails.org/generators.html#application-templates
On Jan 5, 7:18 am, amvis vgrkrish...@gmail.com wrote:
my system running with rails3.1 version, which i am using for 3 months. But
when i create a new application ,Every time i have to changed the Gemfile
of
hmm.. try to add in config/database.yml below `password` this line:
` reconnect: true`
On Jan 3, 4:15 pm, Peter Vandenabeele pe...@vandenabeele.com wrote:
On Tue, Jan 3, 2012 at 1:59 PM, Madhusudhan H R li...@ruby-forum.comwrote:
I am running it on windows 2003 VM.
Rails versions in
And again.. damn.. i need to get some sleep =)
link_to something, :onclick = someFunc(%= current_user.email
%)
On Dec 27, 1:30 pm, Alex Mercer alexey.boby...@gmail.com wrote:
Rifki, just a little fix:
link_to something, :onclick = someFunc(= current_user.email %)
On Dec 27, 10:36 am, Rifki
Rifki, just a little fix:
link_to something, :onclick = someFunc(= current_user.email %)
On Dec 27, 10:36 am, Rifki Fauzi li...@ruby-forum.com wrote:
unless u add a params you can use an untrobusive javasscript.. something
like this:
link_to something, :onclick = someFunc(current_user.email)
Seems on `bundle update` bundler trying to update all dependencies for
all listed gems in Gemfile.
So maybe it's hangs up on some specific gem. Try to update only gems
that you need(e.g. `bundle update rails`).
On Dec 24, 1:47 pm, Mauro mrsan...@gmail.com wrote:
While bundle install works with
honey ruby, c'mon.. Did you know about such things like controllers?
Passing whole work with arrays in views it's a bad idea.
# app/controllers/my_controller.rb
class MyController ApplicationController
def commers
@late_commers = Khamar Md,2 hrs: 5
min,Accounts,Gandhinagar.split(,)
$ bundle exec
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/cli.rb:344:in
`exec': wrong number of arguments (ArgumentError)
this error doesn't explain anything?
bundle exec - using to execute a gems commands in the context of the
bundle...
On 30 ноя, 21:40, Craig White
Try to install dev lib for zlib:
$ sudo apt-get -y install zlib zlib-devel
On 31 окт, 03:11, MaT 2. li...@ruby-forum.com wrote:
hello..
i have problem with rubygems version 1.8.7 on ubuntu 10.04 server LTS
64bit.this rubygems i also try both installation automatic using apt-get
package
what version of mysql2 gem you using?
On 28 окт, 01:21, muhammet dilek li...@ruby-forum.com wrote:
I created project.
rails new rorapp -d mysql
then
cd rorapp
rake db:schema:dump
i get error:https://gist.github.com/1320776
please help me
--
Posted viahttp://www.ruby-forum.com/.
--
Hi to all.
I'm working with saving big files(~200mb) directly into db.
I have issue with that.
Caused by increased huge use of free RAM(about 3gb of ram and 3gb of
swap) on stage when file saves to db:
@job.pdf = params[:job][:pdf].read
After this is completed there is still some RAM and
28 matches
Mail list logo