Thanks Noel, I tried that and got this error -
rake aborted!
couldn't find file 'twitter/bootstrap'
(in .. /app/assets/javascripts/application.js:9)
One of the lines in my application.js is //= require twitter/bootstrap
Similarly application.css contains *= require twitter/bootstrap
Do I need
Hi Colin,
Thank your answer! I think you are right. I will recompile mysql with
source package, and assign the directory of "lib,include,config" when the
gem package installs.
Thank you again!
2012/2/9 Colin Law
> On 8 February 2012 12:59, alaska...@gmail.com wrote:
> > error information o
as per your answer + Evaraldo's one :
event.taskable.class.constantize.model_name on polymorphic works
On Feb 10, 12:05 am, Peter Vandenabeele
wrote:
> On Thu, Feb 9, 2012 at 11:38 PM, Erwin wrote:
> > I have a polymorphic class Event
>
> > class Event < ActiveRecord::Base
> > belongs_to :ta
thanks Everaldo that's it ... ( maybe the first time I use it... !)
On Feb 9, 11:42 pm, Everaldo Gomes wrote:
> See the method constantize.
>
>
>
>
>
>
>
> On Thu, Feb 9, 2012 at 8:38 PM, Erwin wrote:
> > I have a polymorphic class Event
>
> > class Event < ActiveRecord::Base
> > belongs_to :ta
On Fri, Feb 10, 2012 at 12:08 AM, Satvat Rani wrote:
> hi everyone i just typed rails s and then after when i
>> type again it is not working. i got this error
>
Since your'e not the original poster, I assume this is a separate issue?
Did you create an app first and then 'cd' into that new direc
hi everyone i just typed rails s and then after when i
> type again it is not working. i got this error
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default:
C:/RailsInstaller/Ruby1.9.
Hi,
I am using the ruby version 1.8.while i export the excel sheet i
found different symbol (company’s) instead of company's,i am using
the
gem spreadsheet-excel (0.3.5.1).I tried and found one solution
format4 =
workbook.add_format(:color=>"black",:bold=>1,:underline=>0,:align=>'left',:s
On Thu, Feb 9, 2012 at 7:59 PM, Manoj W. wrote:
> Hi,
>
> I am new to Rails and am following Rails tutorials by Michael Hartl and
> Rails guides. I have deployed an app to Heroku, but I get this error
> while trying to access it (from heroku logs) -
>
> Completed 500 Internal Server Error in 75ms
Hi,
I am new to Rails and am following Rails tutorials by Michael Hartl and
Rails guides. I have deployed an app to Heroku, but I get this error
while trying to access it (from heroku logs) -
Completed 500 Internal Server Error in 75ms
ActionView::Template::Error (application.css isn't precompile
On Wed, Feb 8, 2012 at 11:50, David M wrote:
> class EmailFormatValidator < ActiveModel::EachValidator
> def validate_each(object, attribute, value)
> unless value =~ /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i
> object.errors[attribute] << (options[:message] || 'is not valid')
>
On Thu, Feb 9, 2012 at 05:54, honey ruby wrote:
> hi everyone i just typed ruby script/server -d and then after when i
> type again it is not working. i got this error
>
> [2012-02-09 16:19:54] WARN TCPServer Error: Address already in use -
> bind(2)
> Exiting
> /usr/lib/ruby/1.8/webrick/utils.r
On Feb 9, 2012, at 8:56 PM, Christopher Jones wrote:
>> That one-liner ought to Just Work.
>>
>> Walter
>
> I have my code like this but I just doesn't seem to generate a wishlist
> :(
>
> before_filter :set_wishlist, :only => :create
>
> def set_wishlist
>@wishlist = Wishlist.create(pa
> That one-liner ought to Just Work.
>
> Walter
I have my code like this but I just doesn't seem to generate a wishlist
:(
before_filter :set_wishlist, :only => :create
def set_wishlist
@wishlist = Wishlist.create(params[:wishlist])
@wishlist.user = current_user
@wishlist.save
e
I think form me i should be something like this below because I need
different validations to each type of ads. Or in your example could i set
up this kind of different validations?
> class Ad < ActiveRecord::Base
> validates_presence_of :name, :email, :price(?), :category_id(?)
>
> :name
felipe@Felipe:~/rails_projects/mailler$ bundle exec rake db:create
mailler_development already exists
rake aborted!
Mysql::Error: Access denied for user 'mailler'@'localhost' to database
'mailler_test': CREATE DATABASE `mailler_test` DEFAULT CHARACTER SET
`utf8` COLLATE `utf8_unicode_ci`
Tasks:
Try executing:
bundle exec rake db:create
then
bundle exec rake db:migrate
On Thu, Feb 9, 2012 at 10:40 PM, Felipe Pieretti Umpierre <
li...@ruby-forum.com> wrote:
> Hello, I'm trying to make my db, but when I put the code, it just don't
> do nothing..
>
> felipe@Felipe:~/rails_projects/mailler$
Hello, I'm trying to make my db, but when I put the code, it just don't
do nothing..
felipe@Felipe:~/rails_projects/mailler$ rake db:migrate
felipe@Felipe:~/rails_projects/mailler$
what can be ?
Thank you.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are
On Thu, Feb 9, 2012 at 11:38 PM, Erwin wrote:
> I have a polymorphic class Event
>
> class Event < ActiveRecord::Base
> belongs_to :taskable, :polymorphic => true
>
> so an event.instance has : event.taskable_typeand
> event.taskable_id
> i.e. event[:taskable_type] = "Project" event[:ta
i definitely had issues with trying to develop with sqllite and deploy
on heroku (cedar stack) to postgresql. It ended up being imperative
to install postgresql locally for the dev environment. as a newbie it
was a bit daunting at first but i got through it without too much
bloodshed and haven't
On Wed, Feb 8, 2012 at 2:19 AM, Hassan Schroeder wrote:
> On Tue, Feb 7, 2012 at 4:36 PM, Don wrote:
>
> > However, you will want to make sure you research, in detail, the
> database
> > situation. Heroku is now forcing the use of Postgres for "production"
> > deployment, in certain situations
First time using Kaminari... But it seems to be a good gem.
Thx for the tip ;D
--
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@googlegroups.com.
To unsubscribe from this group, send em
See the method constantize.
On Thu, Feb 9, 2012 at 8:38 PM, Erwin wrote:
> I have a polymorphic class Event
>
> class Event < ActiveRecord::Base
> belongs_to :taskable, :polymorphic => true
>
> so an event.instance has : event.taskable_typeand
> event.taskable_id
> i.e. event[:taskable_
I have a polymorphic class Event
class Event < ActiveRecord::Base
belongs_to :taskable, :polymorphic => true
so an event.instance has : event.taskable_typeand
event.taskable_id
i.e. event[:taskable_type] = "Project" event[:taskable_id] = 2
Is it possible to localize the taskable_type
Hi Walter,
I will take a look in this solution and in this Kamirami
Thx for the answer ;D
--
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@googlegroups.com.
To unsubscribe from this gro
found it back : UnicodeUtils gem
On Feb 9, 7:20 pm, Erwin wrote:
> When european accentuated characters in strings are displayed to
> uppercase , the accent is displayed...
> I know there is ( was) a gem or library to managed such
> internationalized strings better ... but I can't remember th
On Feb 9, 2012, at 5:11 PM, Bruno Meira wrote:
> Hi Guys,
> In my application I created this method:
>
> def self.find_paginated_posts_by_post_type(post_type,page=1,query="")
> if query.empty? == false
> query = "%#{query}%"
> else
> query = "%"
> end
> result = in
On Feb 9, 2012, at 3:13 PM, Ralph Shnelvar wrote:
> To me, it would be nice if the reply-to only contained
> rubyonrails-talk@googlegroups.com. I think that's the responsibility of the
> chat list. Am I right? Or is that the responsibility of the mail
> client?
Mail client; does not happen t
Thursday, February 9, 2012, 2:53:54 PM, you wrote:
SR> On Feb 9, 2012, at 2:13 PM, Dave Aronson wrote:
>> Frankly if I were hiring, I'd put a line in the note that specifically
>> says to contact me off-list (the rest of the people here wouldn't give
>> a fig about any given respondent's qualific
Hi Guys,
In my application I created this method:
def self.find_paginated_posts_by_post_type(post_type,page=1,query="")
if query.empty? == false
query = "%#{query}%"
else
query = "%"
end
result = includes(:user).
where(['post_type_id = ? AND title LIKE ?'
On Feb 9, 2012, at 2:13 PM, Dave Aronson wrote:
> Frankly if I were hiring, I'd put a line in the note that specifically
> says to contact me off-list (the rest of the people here wouldn't give
> a fig about any given respondent's qualifications), and anybody who
> replies on-list, flunks.
Do you
The latest Heroku stack requires postgres and will not allow SQLite at all
( I think it is called Cedars ) When you deploy, you will want to deploy
on an older stack that allows SQLite. (I think Bamboo works with SQLite.)
If you can deploy with SQLite, then you should not have any
reconfigura
On Tue, Feb 7, 2012 at 21:07, Ahmy Yulrizka wrote:
> I dont understand why people reply to job offer on the list, not directly to
> the person instead.
Same reason people don't trim quotes: sheer laziness.
Frankly if I were hiring, I'd put a line in the note that specifically
says to contact me
On Tue, Feb 7, 2012 at 11:15, Pallav_bfs wrote:
> How can I design the app, so that any logged in user can edit/remove
> his details only if he wishes to do so and can only view others'
> records.
In addition to using authorization gems like CanCan, you can also do
these things yourself. Before
On Feb 9, 2012, at 2:34 PM, Christopher Jones wrote:
> Hey Walter,
>
> I have the following in my userController
>
> after_filter :set_wishlist, :only => :create
>
> def set_wishlist
>@wishlist = Wishlist.new(params[:wishlist])
>@wishlist.user = current_user
> end
>
> It goes ahead
Well, the code in the search view is executed when the view is rendered. It
is not executed again when you inject the html using javascript.
So the if @group_trace code is only executed when the search view is
rendered and @group_trace is not created yet.
What are you actually trying to achieve
Hey Walter,
I have the following in my userController
after_filter :set_wishlist, :only => :create
def set_wishlist
@wishlist = Wishlist.new(params[:wishlist])
@wishlist.user = current_user
end
It goes ahead but doesn't actually create a wishlist for the user. I
checked in the serv
When european accentuated characters in strings are displayed to
uppercase , the accent is displayed...
I know there is ( was) a gem or library to managed such
internationalized strings better ... but I can't remember the name ..
anyguess ?
thanks
--
You received this message because you are
Thanks Walter.
The databases are empty (I "drop database" before the migration). I'm not
worried about my ids, though, so I think I will just not worry about it.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion o
On Thu, Feb 9, 2012 at 6:49 PM, Peter Vandenabeele
wrote:
> On Thu, Feb 9, 2012 at 6:43 PM, John Hinnegan wrote:
>
>> I'm using AWS RDS / MySQL for my DB layer.
>>
>> I ran migrations on my sandbox environment, and then on my production
>> environment, and I'm getting slight differences. I'm fair
Hello all. I am trying to see how much of my code is covered by Cucumber
features/scenarios. The feature steps are actually using the
browser/views to tests, so they are not directly instantiating
controllers, etc.
My question is, is there a way using SimpleCov or any other coverage
tool to give m
On Feb 9, 2012, at 12:49 PM, Peter Vandenabeele wrote:
> On Thu, Feb 9, 2012 at 6:43 PM, John Hinnegan wrote:
> I'm using AWS RDS / MySQL for my DB layer.
>
> I ran migrations on my sandbox environment, and then on my production
> environment, and I'm getting slight differences. I'm fairly ne
That makes sense -- my sandbox is just a lone host, but my prod is multi
availability zone
Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk
On Thu, Feb 9, 2012 at 6:43 PM, John Hinnegan wrote:
> I'm using AWS RDS / MySQL for my DB layer.
>
> I ran migrations on my sandbox environment, and then on my production
> environment, and I'm getting slight differences. I'm fairly new to MySQL.
> The differences are these AUTO_INCREMENT field
On Feb 9, 2012, at 11:06 AM, Christopher Jones wrote:
> By stating params in the model as
>
> def set_wishlist(params)
>
> It returns the error of: wrong number of arguments (0 of 1).
>
> If I was to try and call the create method from wishlistController
> through the user model, how would I
I'm using AWS RDS / MySQL for my DB layer.
I ran migrations on my sandbox environment, and then on my production
environment, and I'm getting slight differences. I'm fairly new to MySQL.
The differences are these AUTO_INCREMENT fields. Should I take the
difference to indicate that I've messe
Pretty sure something like this will work
Students.where("first_name like ?", params[:first_name]).or("last_name like
?", params[:last_name]).group("first_name, last_name, middle_name").uniq
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group
On Feb 9, 2012, at 11:46 AM, Pedro wrote:
> Hi there,
>
> I need a photo gallery and was thinking to use picasa or flickr to do
> it. Is there a gem or pluging that I could use with rails 2.3.8?
>
> Thanks,
One of the very first Rails screencasts was how to build a Flickr gallery. I'm
sure it
Have you tried gem paperclip?
2012/2/9 praneeth thota
> How to upload image in rails 2.3.8 and also updating the existing image.
> Thanks in advance for your help and support.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Goo
On Thu, Feb 9, 2012 at 4:58 PM, Kausik Bakshi wrote:
> Hi I am a new Rails Developer
>
Welcome :-)
>
> My application_controller is:
>
> class ApplicationController < ActionController::Base
> protect_from_forgery
>
> before_filter :sshow
>
> def sshow
>puts "==="
How will I convert this into searchlogic query?
@students = Students.find_by_sql(["SELECT DISTINCT * FROM students
WHERE first_name LIKE ? OR last_name LIKE ? GROUP BY first_name,
last_name, middle_name", params[:first_name], params[:last_name] ])
Thank you,
Jade
--
You received this message
Hi there,
I need a photo gallery and was thinking to use picasa or flickr to do
it. Is there a gem or pluging that I could use with rails 2.3.8?
Thanks,
Pedro
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send
I'm using the gem bootstrap-will_paginate and inside this gem there is
the initializer:
require 'will_paginate/view_helpers/action_view'
module WillPaginate
module ActionView
def will_paginate(collection = nil, options = {})
options, collection = collection, nil if collection.is_a? Hash
By stating params in the model as
def set_wishlist(params)
It returns the error of: wrong number of arguments (0 of 1).
If I was to try and call the create method from wishlistController
through the user model, how would I go about calling it?
I have not had he experience of doing such thing b
Hi I am a new Rails Developer
My application_controller is:
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :sshow
def sshow
puts "==="
puts YAML::dump(request.subdomains)
end
end
now when I put kausik.localhost:30
On Feb 9, 2012, at 10:43 AM, Christopher Jones wrote:
> Hi,
>
> I tried the method that I stated in the model:
>
> def set_wishlist
> @wishlist = Wishlist.new(params[:wishlist])
> end
>
> But once I created the user it returned an error screen stating:
>
> NameError in UsersController#create
Hi,
I tried the method that I stated in the model:
def set_wishlist
@wishlist = Wishlist.new(params[:wishlist])
end
But once I created the user it returned an error screen stating:
NameError in UsersController#create
undefined local variable or method `params' for #
Rails.root: C:/finalprojec
On Wed, Feb 8, 2012 at 7:35 AM, Micajah wrote:
> The problem is correctly setting up the PATH for MySQL.
>
> In terminal, which mysql = /usr/local/bin/mysql
>
> but in the tutorial I am following their terminal displays the
> following
>
> which mysql = /usr/local/mysql/bin/mysql
> What am I doi
On Feb 9, 2012, at 3:37 AM, Peter Vandenabeele wrote:
> On Thu, Feb 9, 2012 at 7:09 AM, Walter Lee Davis wrote:
> There is now an app on Heroku for this. Please chip in and add any words you
> know are "trouble".
>
> http://reservedwords.herokuapp.com
>
>
> Thanks.
>
> 1) A bug report ... w
On 8 February 2012 12:59, alaska...@gmail.com wrote:
> error information occurred when I execute "rails new demo1 --
> database=mysql"
>
> MY environment below:
> Mac OS 10.4.11,
> Ruby 1.8.7
> Rails 3.2.1,
> Gem 1.8.15
> mysql5 Ver 14.14 Distrib 5.1.61, for apple-darwin8.11.1 (i386) using
> rea
On Thu, Feb 9, 2012 at 2:19 PM, Muruga wrote:
> Hi All
>I am working an Rails 2.3.14.I am providing web services for
> an iphone app thru xml.
> My Rails app uses an authlogic gem for authentication.How to
> authenticate a API call from an iphone app.
> Initially i can able to sign
Hi All
I am working an Rails 2.3.14.I am providing web services for
an iphone app thru xml.
My Rails app uses an authlogic gem for authentication.How to
authenticate a API call from an iphone app.
Initially i can able to sign up and login thru XML post
request.After login how my ra
On Thu, Feb 9, 2012 at 5:43 AM, Christopher Jones wrote:
>> Use an after_create callback in the User model to create the associated
>> Wishlist record.
>
> So in the user model would I define first like this:
>
> after_create :set_wishlist
>
> then the following:
>
> def set_wishlist
> @wishlist
Hi all,
please tell me the path to method missing super class
method for ActiveRecord
Thanks
--
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@googlegroups.com.
To unsubscribe
Hi all,
please tell me the path to method missing super class
method for ActiveRecord
Thanks
--
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@googlegroups.com.
To unsubscribe
> Use an after_create callback in the User model to create the associated
> Wishlist record.
So in the user model would I define first like this:
after_create :set_wishlist
then the following:
def set_wishlist
@wishlist = Wishlist.new(params[:wishlist])
end
I hope I am on the correct track.
One more thing, if you are using linux OS then you can kill your existing
running process-
kill process_id
process_id : this id you have to collect from Linux UI process monitor,
see ruby process id and use above command.
Best luck
--
With Regards,
Rameshwar
On 09/02/12 4:46 PM, "Rameshw
requirement for Ruby developer pls. sent your profile to:
anurag.ty...@softwarepeople.us
Location: Columbia, SC
Duration: 12 months+
Rate: $65/hr 1099/c2c
Required Skills:
RUBY, RAILS, GIT, MYSQL, CUCUMBER, RSPEC, JQUERY, EXCELLENT ORAL AND
WRITTEN COMMUNICATION SKILLS, TEST-DRIVEN DEVELOPMEN
Running Mac OSX 10.7.2
Currently Installed:
Homebrew, v 0.8.1
Git, v 1.7.9
RVM, v 1.10.2
Rails, v 3.2.1
Ruby, v 1.9.3p0
MySQL, v 14.14 Distrib 5.5.19
The problem is correctly setting up the PATH for MySQL.
In terminal, which mysql = /usr/local/bin/mysql
but in the tutorial I am following
Georgia Tech Alumni Association
Senior Web Programmer/Ruby on Rails
Ruby on Rails Developer needed for web development in Atlanta,
Georgia. Great opportunity to build programming skills in a flexible,
life-style friendly environment. Full medical and dental benefits, 3
weeks accrued vacation, 1 we
Forgot to add this one
http://www.jamesyu.org/2011/01/27/cloudedit-a-backbone-js-tutorial-by-example/
On Wed, Feb 8, 2012 at 11:08 AM, Fabio Fabrizi wrote:
> Hi Scott,
>
> Still a newbie myself to Rails, but these might help:
>
> http://dailyjs.com/
>
> http://www.justinball.com/2011/03/11/get-j
Hi Scott,
Still a newbie myself to Rails, but these might help:
http://dailyjs.com/
http://www.justinball.com/2011/03/11/get-jquery-working-with-ruby-on-rails-3/
http://www.rubyinside.com/how-to-rails-3-1-coffeescript-howto-4695.html
http://rubygems.org/gems/jquery-rails
Fabio
On Wed, Feb 8, 2
error information occurred when I execute "rails new demo1 --
database=mysql"
MY environment below:
Mac OS 10.4.11,
Ruby 1.8.7
Rails 3.2.1,
Gem 1.8.15
mysql5 Ver 14.14 Distrib 5.1.61, for apple-darwin8.11.1 (i386) using
readline 6.2
mysql (2.8.1)
Please help me, thx!
more detail message as fol
This mean that port which is required for your application is already
using by your machine.
Yon need to kill this process either your can use
ruby script/server -p 1234
Then you can be able to run your application on http://localhost:1234
--
With Regards,
Rameshwar
On 09/02/12 4:24 PM,
TCPServer Error: Address already in use
that error message claims you have already running some server on the same port
as you're trying to run this on. cancel/shutdown other one or add "-p
some_number" to run your server on different port
tom
On Feb 9, 2012, at 11:54 , honey ruby wrote:
> hi
hi everyone i just typed ruby script/server -d and then after when i
type again it is not working. i got this error
[2012-02-09 16:19:54] WARN TCPServer Error: Address already in use -
bind(2)
Exiting
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already
in use - bind(2) (Errno:
On Thu, Feb 9, 2012 at 7:07 AM, Hassan Schroeder wrote:
> On Wed, Feb 8, 2012 at 8:54 PM, Bob Smith wrote:
>
> > What I am trying to do is have a *unique value* set in each new record
>
> See: http://rubygems.org/gems/uuid
>
Indeed.
And maybe better to not mess with the `def initialize`, but u
Thanks for your help!
It works fine now.
soichi
--
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 email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this
On Thu, Feb 9, 2012 at 7:09 AM, Walter Lee Davis wrote:
> There is now an app on Heroku for this. Please chip in and add any words
> you know are "trouble".
>
> http://reservedwords.herokuapp.com
>
>
Thanks.
1) A bug report ... when clicking on the detail (show view)
of 1 word, the authenticatio
78 matches
Mail list logo