Hi Surya,
Thanks for your suggestion
Let me check with fb_graph.
On Mon, Jun 20, 2011 at 11:49 AM, Surya wrote:
> I had used fb_graph : https://github.com/nov/fb_graph to achieve the same
> thing. You may go and check it out. One more gem I've heard but didn't used
> is koala: https://github.c
I had used fb_graph : https://github.com/nov/fb_graph to achieve the same
thing. You may go and check it out. One more gem I've heard but didn't used
is koala: https://github.com/arsduo/koala look around for other gems and use
what ever suites you the best.
On Mon, Jun 20, 2011 at 8:11 AM, Thiyaga
Hi All,
We build application from rails 2.3.5, now we need to implement post content
to facebook wall while creating product. Condition is users post wall to
only one facebook wall and should not ask user to login their Facebook.
Please guide us, any plugin or gem available?.
Advanced Thanks for
Hi,
Yes I agree, We can use Ruby 1.8.7 for rails 3.0.x application, its working
for me in production server.
On Sun, Jun 19, 2011 at 9:09 PM, Colin Law wrote:
> On 19 June 2011 16:31, Peter Bell wrote:
> >
> > On Jun 19, 2011, at 11:26 AM, Colin Law wrote:
> >> On 19 June 2011 14:08, gezope w
Hi!
I'm new to Rails and on the list, but I'll try to help.
I think you should write:
<%= link_to 'Destroy', {:controller => :users, :action
> => :destroy, :id => user, :confirm => 'are you sure !' } %>
I think you should change the curly braces.
http://api.rubyonrails.org/classes/Action
Can you please explain the difference between PHP and RubyOnRails.
I am trying to get a web-based application developed for an online
personality test, and
would like something secure, has database abilities, graphing
abilities, backend calculation capabilities. Please advise! I was told
to have th
I have a basic stylistic question I would like some feedback on.
I have a table containing messages, each message has a status of
current or expired.
Messages expire a set period after they were created. Right now I
have a function in my controller to get the current message. This
function also
Hi,
I couldn't find any plugins that sanitized string input. I'm not sure
if searched for the wrong term, I searched for 'sanitize' and
'normalize'. Maybe there is a better name for what I'm trying to do.
But I basically want to run a few operations on string fields before
they are validated/sav
Hi,
I was looking around a bit and couldn't find any callbacks that
executed before before_validation
The current problem with using before_validation is that it won't fire
if I'm not using validations with #save(:validate => false) - which
makes sense. Before_save won't suffice because I want th
hi,
to create a form without scaffold command sholud v write the same code in
all the files that is created when scaffold is used.
no idea on thread Mr.Colin..
i did it as follows
rake Courses -d mysql
set the pw in database.yml file
rake db:create:all
script/server
script/generate controller s
---
Annapoorna R wants to stay in better touch using some of Google's coolest new
products.
If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-69ba85131c-b12f4fb566-37PKQcVoMeUbP4tBYRSCxvYwhsI
You'll n
i load all js.
2011/6/20 Andrew Skegg
> Adel Mediouni writes:
>
> >
> > hi
> > i have a link in a view to delete a user:
> > <%= link_to 'Destroy', {:controller => :users, :action
> > => :destroy, :id => user}, :confirm => 'are you sure !' %>
> >
> > all works good,when i click to delete user
Also: the query I have now still isn't quite right since it returns
empty Categories (the LEFT JOINs need to be JOINs), which is another
reason I'm interested in taking a look at it in ARel.
On Sun, Jun 19, 2011 at 21:38, John Feminella wrote:
> In my application, a Store belongs to a Business, a
In my application, a Store belongs to a Business, a Business has many
Stores, and each Business has many Categories through Categorizations.
I would like to return a list of Categories mapped to the number of
Stores in that category. For example, suppose that we have:
business 1: in categorie
Adel Mediouni writes:
>
> hi
> i have a link in a view to delete a user:
> <%= link_to 'Destroy', {:controller => :users, :action
> => :destroy, :id => user}, :confirm => 'are you sure !' %>
>
> all works good,when i click to delete user its ok, just i dont have
Do you have the javacript l
hi
i have a link in a view to delete a user:
<%= link_to 'Destroy', {:controller => :users, :action
=> :destroy, :id => user}, :confirm => 'are you sure !' %>
all works good,when i click to delete user its ok, just i dont have
the alert 'are you sure !'
i dont know why!
please can you help me.
t
Tom Allison writes:
>
>
> Greetings!I'm trying to set up a validation to ensure that a record is
unique across three columns; col_one, col_two, col_three. tried
this:validates_uniqueness_of :col_one, :scope=>[:col_two, :col_three]and it
really doesn't work at all like I had hoped.the docs s
On 19 June 2011 21:26, Bill Felton wrote:
>
> On Jun 19, 2011, at 2:43 PM, Mauro wrote:
>
>> On 19 June 2011 13:43, Bill Felton wrote:
>>>
>>> On Jun 19, 2011, at 7:23 AM, Mauro wrote:
>>>
In the model I have:
validates :square_meters_public_land, :barrier_meters, :numericality
>>>
On Jun 19, 2011, at 2:43 PM, Mauro wrote:
> On 19 June 2011 13:43, Bill Felton wrote:
>>
>> On Jun 19, 2011, at 7:23 AM, Mauro wrote:
>>
>>> In the model I have:
>>>
>>> validates :square_meters_public_land, :barrier_meters, :numericality
>>> => { :greater_than_or_equal_to => 0 }, :allow_nil
On 17 June 2011 02:44, arai wrote:
> You want to use self.class.count.
But if I use self.maximum(:id) it works, there is no need to use
self.class.maximun(:id).
Why?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group,
On 19 June 2011 13:43, Bill Felton wrote:
>
> On Jun 19, 2011, at 7:23 AM, Mauro wrote:
>
>> In the model I have:
>>
>> validates :square_meters_public_land, :barrier_meters, :numericality
>> => { :greater_than_or_equal_to => 0 }, :allow_nil => true
>>
>> but if, in the field, on create, I don't i
Hey Guys,
This is probably not specific to Rails, but I'm kinda hoping someone already
faced this error, it's been hours trying to debug the issue, but I just can't
figure out why it's happening
So the application I'm developing is on Rails 3.1 using the 3-1-stable branch,
up-to-date, and I'm
On Sun, Jun 19, 2011 at 10:53 AM, iris wrote:
> How do I access the log files? I am new at this (a new Ruby on Rails
> user)
They're in the 'log' directory of your application. (There may also be
pertinent information in the log files of your web server, but you'll have
to figure out where your
On 19 June 2011 18:04, Mauro wrote:
>> validates_numericality_of :barrier_meters, :greater_than_or_equal_to
>> => 0, :allow_nil => true
>
> It's just the same.
Curious. Okay, so lastly, try:
validates_numericality_of :square_meters_public_land,
:greater_than_or_equal_to => 0, :if => :square_mete
Hi,
yes, turns out my host provider does not support 3.0.7 :-(
How do I access the log files? I am new at this (a new Ruby on Rails
user)
Tx!
On Jun 19, 8:51 am, gezope wrote:
> Under log/ folder you can find your log files. Take a look at them
> because your error msg isn't really helpful.
>
On Jun 19, 2011, at 7:23 AM, Mauro wrote:
> In the model I have:
>
> validates :square_meters_public_land, :barrier_meters, :numericality
> => { :greater_than_or_equal_to => 0 }, :allow_nil => true
>
> but if, in the field, on create, I don't insert a value I have the
> error "field is not a nu
On Jun 19, 4:51 pm, Matt Martini wrote:
> In various examples and tutorials I've see Gemfiles contain
>
> gem 'sqlite3'
This means load the gem called sqlite3
>
> or
>
> gem 'sqlite3-ruby', :require => 'sqlite3'
>
this means load the sqlite3-ruby gem, and load the sqlite3.rb file
inside
Thanks for the info. I guess I'll try removing Compass altogether 1st and
see what happens, then reintroduce it, and see again. I'll post back here
if there's anything interesting to tell.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" grou
I got it to work after some tinkering on a test project, but I am not sure
how to proceed. I am going into public beta with a major project soon and I
would like to start with Rails 3.1 to reduce migration risk later on but the
fact that sprockets and compass don't work well together is a real bumm
I've installed sqlite3 and everything is working... but i don't know the
differences between the two...
--
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
Yep I am using Compass too. Thanks for the pointer in that direction, I'm
looking at their CLI docs now for some "unwatch" command or something.
Did you have a bad experience with Compass/3.1?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" g
On 19 June 2011 13:38, Michael Pavling wrote:
> On 19 June 2011 12:23, Mauro wrote:
>> In the model I have:
>>
>> validates :square_meters_public_land, :barrier_meters, :numericality
>> => { :greater_than_or_equal_to => 0 }, :allow_nil => true
>>
>
> Depending on your Rails version try:
>
>
On 19 June 2011 14:26, Michael Pavling wrote:
>
> What about:
>
> validates_numericality_of :square_meters_public_land,
> :greater_than_or_equal_to => 0, :allow_nil => true
> validates_numericality_of :barrier_meters, :greater_than_or_equal_to
> => 0, :allow_nil => true
It's just the same.
--
Y
Happens to me to.
Sometimes it works for me, sometimes it does not. Same goes for
coffeescript. Perfectly working barista install in 3.0, but on 3.1 with the
asset pipeline it sporadically does not compile. Are you per any chance
using compass too, maybe that's the culprit?
On Sun, Jun 19, 2011
Title pretty much says it all.
Just converted an app to 3.1 using the asset pipeline and I think this is
the last hangup I've got.
I haven't seen anything about needing to run a watcher or anything, but
right now the only way I can see style changes is to stop/start WEBrick.
Help?
--
You rec
In various examples and tutorials I've see Gemfiles contain
gem 'sqlite3'
or
gem 'sqlite3-ruby', :require => 'sqlite3'
What is the difference? Which should be used in a new Rails application
(3.0.9)?
Matt
--
You received this message because you are subscribed to the Google Group
On 19 June 2011 16:31, Peter Bell wrote:
>
> On Jun 19, 2011, at 11:26 AM, Colin Law wrote:
>> On 19 June 2011 14:08, gezope wrote:
>>> ...
>>> Running Ruby 1.9 with Rails3 is essential and it will have conflicts
>>> with your other gems if you have version differences.
>>
>> Not true, ruby 1.8.7
On Jun 19, 2011, at 11:26 AM, Colin Law wrote:
> On 19 June 2011 14:08, gezope wrote:
>> ...
>> Running Ruby 1.9 with Rails3 is essential and it will have conflicts
>> with your other gems if you have version differences.
>
> Not true, ruby 1.8.7 works fine with rails 3.0.x. I am using it as I
On 19 June 2011 14:08, gezope wrote:
> ...
> Running Ruby 1.9 with Rails3 is essential and it will have conflicts
> with your other gems if you have version differences.
Not true, ruby 1.8.7 works fine with rails 3.0.x. I am using it as I type.
Colin
--
You received this message because you a
If you know Git already then definitely give a try for Heroku.
Go on with this: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
it teaches you how to start with Heroku and Git.
If not and are a beginner then:
http://www.railshosting.org/
I started here, their support is excellent:
http:
Hi,
I can see on your error list:
"/mysql2/ruby/1.8/gems/ activesupport-3.0.3/lib/active_support/
dependencies.rb:239:in "
means you try to use Rails3 with old Ruby version 1.8 probably. Do you
use RVM?
You might want to see outputs of these:
$ ruby -v
$ gem -v
$ gem list
Running Ruby 1.9 with R
Hi, I had the same problem and just wanted to tell you: if you
uninstalled later it will come back so you'll have the same problem
probably.
4 solutions:
1. Removing later rake with gem uninstall rake -v=0.9.0
then make sure you change your Gemfile:
gem rake, '0.8.7' (use gem list to see if you h
Under log/ folder you can find your log files. Take a look at them
because your error msg isn't really helpful.
Also have you asked your hosting provider if it's possible to run Ruby
apps on your host? Make sure you're using RVM and Rails3, not older
version, and check the same about your hosting.
On 19 June 2011 13:18, Mauro wrote:
> I'm using rails 3.0.9, sorry but I don't undestand why I have to use
> the if clause.
> allow_nil => doens't work with validation_numericality_of?
I didn't say you "had to", I suggested you try it... did you? Did it work?...
I doubt it anyway, as I had copie
On 19 June 2011 13:38, Michael Pavling wrote:
> On 19 June 2011 12:23, Mauro wrote:
>> In the model I have:
>>
>> validates :square_meters_public_land, :barrier_meters, :numericality
>> => { :greater_than_or_equal_to => 0 }, :allow_nil => true
>>
>
> Depending on your Rails version try:
I'm
On 19 June 2011 12:23, Mauro wrote:
> In the model I have:
>
> validates :square_meters_public_land, :barrier_meters, :numericality
> => { :greater_than_or_equal_to => 0 }, :allow_nil => true
>
Depending on your Rails version try:
validates :square_meters_public_land, :barrier_meters, :num
On Jun 19, 7:49 am, "exelstu...@gmail.com"
wrote:
> Linode no good, their guides will guide you to wrong deployment. You'll lose
> a LOT of time chasing your tail and banging your head against the wall with
> deployments that just don't work.
>
Linode were fine for me but then I didn't read any
I've had a very different experience with Linode. I had no Linux
experience and was able to get a box set up running Rails in not too
long using their guides. Sure, it wasn't as fast as using Heroku but I
enjoy having total control over the environment.
Bobby
On Jun 19, 1:49 am, "exelstu...@gmail
In the model I have:
validates :square_meters_public_land, :barrier_meters, :numericality
=> { :greater_than_or_equal_to => 0 }, :allow_nil => true
but if, in the field, on create, I don't insert a value I have the
error "field is not a number".
--
You received this message because you are subs
49 matches
Mail list logo