On Jan 2, 11:26 pm, Hassan Schroeder
wrote:
> ..you're not happy with the price/T&Cs/whatever? Then move the app
> to another provider. It's not a big deal.
Well, Hassan, that's just it. If I launch the application now, let it
build up a solid user base over the next 6 months to a year, and then
This is a bug fix release recommended for all users who have upgraded to
rspec-rails-2.4.
### rspec-rails-2.4.1 / 2011-01-03
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1)
* Bug fixes
* fixed bug caused by including some Rails modules before RSpec's
RailsExa
On Sun, Jan 2, 2011 at 10:03 PM, Phoenix Rising wrote:
> My biggest concern is launching my app on Heroku, only to find that ...
..you're not happy with the price/T&Cs/whatever? Then move the app
to another provider. It's not a big deal.
--
Hassan Schroeder hassan.schr
I totally agree with Marnen's post above. The first approach is going
to be better in terms of performance than storing it in another table.
The reasons are, basically:
1) Joins on the two tables during queries
2) Index size
So let's say you have "users" and "addresses" and each address has a
us
So I've been keeping an eye on the recent acquisition of Heroku by
Salesforce.com, and truth be told, I'm pretty concerned. I've been
developing an app recently that I had planned to launch on Heroku,
before I heard about this merger. But now that Salesforce.com is
about to finish the acquisition
Hi
I want to implement paypal chained payment with adaptive payments API.
I am totally new to paypal. Kindly guide me to start with. I have heard
of gem active merchant. Can I use that for the purpose? Or any other
gems? Also please point me to any examples describing adaptive payment
with chaine
David Zhu wrote in post #971909:
> Hello,
>
> I have a user table that stores their username, email address, and
> password. (along with salt, etc)
>
> However, now I want to have more complex information associated with
> each user (address, etc). I'm no DBA expert, so in terms of
> performance, w
Hey all
After upgrading to Rails 3, when I try to run Rails 2 app, I get this:
script/server
Missing the Rails 2.3.8 gem. Please `gem install -v=2.3.8 rails`, update
your RAILS_GEM_VERSION setting in config/environment.rb for the Rails
version you do have installed, or comment out RAILS_GEM_VERSI
On Jan 2, 10:15 pm, "Mustafa C." wrote:
> I am on http when I send the Ajax request. About the same origin policy,
> I thought Rails/Nginx would switch it over to HTTPS protocol as the
> request is being sent to an action that requires SSL(ie.
> SessionsController:create is set up with ssl_requi
Hello,
I have a user table that stores their username, email address, and
password. (along with salt, etc)
However, now I want to have more complex information associated with
each user (address, etc). I'm no DBA expert, so in terms of
performance, which is better:
- A user table that has all th
Oh duh, It's :class_name => "Users::Role" and in the post above this,
it's a typo I have User::Role, but the namespace is plural
--
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
### rspec-rails-2.4.0 / 2011-01-02
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.3.1...2.4.0)
* Enhancements
* include ApplicationHelper in helper object in helper specs
* include request spec extensions in files in spec/integration
* include controller spec extensions in
Changes to rspec-core listed below. There are no functional changes to
rspec-mocks or rspec-expectations for this release.
Happy New Year!
Cheers,
David
### rspec-core-2.4.0 / 2011-01-02
[full changelog](http://github.com/rspec/rspec-core/compare/v2.3.1...v2.4.0)
* Enhancements
* start the
On Jan 2, 9:52 pm, Colin Law wrote:
> On 2 January 2011 21:18, paul h wrote:
>
>
>
> > Hi Colin,
>
> > I have duplicated your tests using rvm on Ubuntu 10.04, with AMD64,
> > and 3GB RAM, results are below:
>
> > On Dec 30 2010, 3:59 pm, Colin Law wrote:
> >> On 29 December 2010 23:18, Conrad Ta
I am on http when I send the Ajax request. About the same origin policy,
I thought Rails/Nginx would switch it over to HTTPS protocol as the
request is being sent to an action that requires SSL(ie.
SessionsController:create is set up with ssl_required).
If my above understanding is not correct,
Yes I have. :class does not work either
has_many :user_roles, :class => "User::Roles"
gives:
NameError: uninitialized constant User::User::Role
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
On 2 January 2011 21:18, paul h wrote:
> Hi Colin,
>
> I have duplicated your tests using rvm on Ubuntu 10.04, with AMD64,
> and 3GB RAM, results are below:
>
> On Dec 30 2010, 3:59 pm, Colin Law wrote:
>> On 29 December 2010 23:18, Conrad Taylor wrote:
>>
>> > ...
>> > Colin, do you have a samp
On 2 January 2011 21:21, Mohammad El-abid wrote:
> So I just found out that I sort my models via folders and am starting a
> new project to mess around with this some. So I started working on
> can-can, but am at a lost on how to do "has_many :user_roles"
Have you read the Rails Guide on ActiveRe
On Jan 2, 6:53 pm, "Mustafa C." wrote:
> Hi Fred,
> Tried it, though no change. I'm thinking the issue may be more
> fundamental, hope it proves me wrong!
>
> My xhr POST is actually being sent as an HTTP POST request, I send it
> from Javascript client as XMLHTTPRequest. The first problem is: I
Sent from my iPhone
On Jan 1, 2011, at 5:33 PM, Mike C wrote:
> I followed tutorials and changed my Rails app to use jQuery. All the
> needed files are in place, but ajax isn't working. I have the
> format.js in the correct place and the js.erb file named after the
> action. Calling stuff from
On Jan 2, 2011, at 3:51 PM, Ralph Shnelvar wrote:
Walter Davis wrote in post #971878:
Maybe you want to transcode and skip Flash altogether.
Please explain.
Convert your FLV (or, for much better quality, the original file
format that was compressed into FLV) into H264 MPEG 4 and OGG.V
Update:
On Jan 2, 9:18 pm, paul h wrote:
> Hi Colin,
>
> I have duplicated your tests using rvm on Ubuntu 10.04, with AMD64,
> and 3GB RAM, results are below:
>
> On Dec 30 2010, 3:59 pm, Colin Law wrote:
>
>
>
> > On 29 December 2010 23:18, Conrad Taylor wrote:
>
> > > ...
> > > Colin, do you
So I just found out that I sort my models via folders and am starting a
new project to mess around with this some. So I started working on
can-can, but am at a lost on how to do "has_many :user_roles"
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscri
Hi Colin,
I have duplicated your tests using rvm on Ubuntu 10.04, with AMD64,
and 3GB RAM, results are below:
On Dec 30 2010, 3:59 pm, Colin Law wrote:
> On 29 December 2010 23:18, Conrad Taylor wrote:
>
> > ...
> > Colin, do you have a sample application? Next, it really depends
> > on your o
Walter Davis wrote in post #971878:
> Maybe you want to transcode and skip Flash altogether.
Please explain.
Flash seems to be the best compromise between compression and clarity.
I am open to other formats.
> You'll get a wider playback audience (including iDevices) and the
> visitors will get
On Sun, Jan 2, 2011 at 11:34 AM, Tom wrote:
> Ok it might be easier to show you type of thing I want to do.
>
> class ActionsController < ApplicationController
> def index
> �...@actions = CorporateAction.all(:headers => request.headers)
> end
>
> def show
> �...@action = CorporateAction.fi
Using ruby-prof I captured the CPU time of the startup of my 3.0.3
Rails app (https://gist.github.com/762764):
ruby-1.8.7-p330 (Total CPU: 8.573606)
%self total self waitchildcalls name
20.99 8.50 1.80 0.00 8.49 1898 Kernel#require
10.16 0.87
On Jan 2, 2011, at 1:33 PM, Frederick Cheung wrote:
On Jan 2, 4:53 pm, Ralph Shnelvar wrote:
Paul
Thanks, Paul.
I know how to drop the .flv into the .swf. That's not the issue.
First, there is a 16000 frame limit in .swf's. That's not horrible
at
18 fps.
But the big thing is tha
Ok it might be easier to show you type of thing I want to do.
class ActionsController < ApplicationController
def index
@actions = CorporateAction.all(:headers => request.headers)
end
def show
@action = CorporateAction.find(params[:id], :headers =>
request.headers)
end
end
Where
how could i get a value from previus page?
for example
on EVENT show view i have
<%= link_to 'New Message', new_message_path( :event_id => @event.id) %>
|
and i need to get the event id on the new_message page to send it when
creating the message
--
Posted via http://www.ruby-forum.com/.
--
Hi Fred,
Tried it, though no change. I'm thinking the issue may be more
fundamental, hope it proves me wrong!
My xhr POST is actually being sent as an HTTP POST request, I send it
from Javascript client as XMLHTTPRequest. The first problem is: I should
not send login/password plain text before
On Jan 2, 3:08 am, Guo Yangguang wrote:
> when i define the after_save for Book,i think perhaps this after_save
> has overrided rails itself's implemented one,if so,i want to use both of
> them.
>
> is my consideration right?
> does rails use active_record callbacks? if it is true,how do i take
On Jan 2, 4:53 pm, Ralph Shnelvar wrote:
>
> > Paul
>
> Thanks, Paul.
>
> I know how to drop the .flv into the .swf. That's not the issue.
>
> First, there is a 16000 frame limit in .swf's. That's not horrible at
> 18 fps.
>
> But the big thing is that FLVs allow for progressive downloads and
Makes no sense, as long as the content is displayed properly
in the html that is generated, it doesn't matter if its rails, php,
python, java, or anything else serving it. browsers read source code
as it is. Rails has nothing to do with your video code.
Here is some sample code of a basic html5 vi
On Jan 2, 2:32 am, "Mustafa C." wrote:
>
> Below is my HTTPS server block at nginx:
> server {
> listen 443;
> server_name www.mysite.com;
> proxy_set_header X_FORWARDED_PROTO https;
It looks like rails thinks your https post was an http one, and it's
probably beca
On Jan 1, 11:46 pm, "Jon W." wrote:
> Thanks for the info on gem-prelude. I already suspected that 1.4 might
> have an issue and so I also tried a manual install of GEM 1.36 but I had
> the exact same issue. So, I doubt that this is an issue only concerning
> 1.4 Any further ideas?
Yo
Before installing1.9.2 did you install zlib?
sudo rvm package install zlib
Also, note that you don't do gem installs when running rvm, instead you
use rvmsudo gem install
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ru
paul h wrote in post #971856:
>
> If you want the flv to behave like the swf, you need to embed the flv
> in a swf.
>
> If you want to provide a link to the page, I can have a look, and
> maybe drop the flv into a swf for you ;)
>
> Paul
Thanks, Paul.
I know how to drop the .flv into the .swf. T
On 2 January 2011 01:57, gezope wrote:
> Hi Colin and all,
>
> I had exactly the same here: 1GB RAM, Ubuntu, RVM with Ruby1.9 and
> Rails - and it's terribly slow comparing with the elder Ruby and Rails
> combo. Did you figured out anything?
>
> Also how did you speed up your server running? I alr
On Jan 2, 5:07 am, Ralph Shnelvar wrote:
> I have the following HAML code
>
> ul{ 'id' => tutorials_ul }
> %li
> %a{'href' => '/videos/create-command-001.swf'}
> 'Edition swf'
> %li
> %a{'href' => '/videos/create-command-001.flv'}
> 'Edition flv'
>
> When t
Hi,
I used facebook connect in my application for login and registration
process using authlogic + authlogic connect gem.
It works good in local machine, but in server it shows the error
message like this.
{
"error": {
"type": "OAuthException",
"message": "Missing client_id parame
One more thing: check your versions, the tutorial has to be the same
like your local Ruby and Rails versions.
bests
On jan. 2, 02:33, Mike C wrote:
> I followed tutorials and changed my Rails app to use jQuery. All the
> needed files are in place, but ajax isn't working. I have the
> format.js in
Hi,
try out FireBug http://getfirebug.com/ for FireFox or FireBub Lite
http://getfirebug.com/firebuglite for Chrome. You can see if you made
any JavaScript syntax mistake. Also give a try for Selenium
http://seleniumhq.org/projects/ide/
After "rails server" when you check the workflow on your Rai
On 2 January 2011 14:34, Michal Burak wrote:
> Colin Law wrote in post #971847:
>> On 2 January 2011 14:11, Michal Burak wrote:
>
>>> link1.save!
>>>
>>> foo2 = create_foo.save!
>>> link2 = foo2.www_links.create(:href => 'wp.pl')
>>>
>>> # when
>>> link2.save!
>>>
>>> # then
>>> errors
>> So you are just wanting uniqueness of www_link.href? Will not
>> validates_uniqueness_of in WwwLink class (backed up by a unique
>> constraint in the database of course) do the job? I think in this
>> case it will be the foo2.www_links.create that will fail.
>> Colin
> The constraint is on "ow
On 2 January 2011 14:29, bingo bob wrote:
>> If what you want to do is store a set of values for something varying
>> over time and wish to query the set, pick out max and min and so on
>> then I suggest this is not best served by versioning. Instead model
>> it in the normal way. So App has_man
Colin Law wrote in post #971847:
> On 2 January 2011 14:11, Michal Burak wrote:
>> link1.save!
>>
>> foo2 = create_foo.save!
>> link2 = foo2.www_links.create(:href => 'wp.pl')
>>
>> # when
>> link2.save!
>>
>> # then
>> errors occured !
>> end
>
> So you are just wanting uniqueness of
> If what you want to do is store a set of values for something varying
> over time and wish to query the set, pick out max and min and so on
> then I suggest this is not best served by versioning. Instead model
> it in the normal way. So App has_many price_tiers, PriceTier
> belongs_to app, and
On 2 January 2011 14:11, Michal Burak wrote:
> Colin Law wrote in post #971843:
>> On 2 January 2011 13:42, Michal Burak wrote:
>>> class Foo < ActiveRecoed::Base
>>> has_many :www_links, :as => :owner
>>> end
>>>
>>> class WwwLink < ActiveRecord::Base
>>> belongs_to :owner, :polymorphic => true
Colin Law wrote in post #971843:
> On 2 January 2011 13:42, Michal Burak wrote:
>> class Foo < ActiveRecoed::Base
>> has_many :www_links, :as => :owner
>> end
>>
>> class WwwLink < ActiveRecord::Base
>> belongs_to :owner, :polymorphic => true
>> attr_accessible :href
>> end
>>
>> I want to ensure
On 2 January 2011 13:42, Michal Burak wrote:
> class Foo < ActiveRecoed::Base
> has_many :www_links, :as => :owner
> end
>
> class WwwLink < ActiveRecord::Base
> belongs_to :owner, :polymorphic => true
> attr_accessible :href
> end
>
> I want to ensure that each Foo instance does not have same
On 2 January 2011 13:02, Guo Yangguang wrote:
> thanks,colin.it seems the other two callback ways: handler class and
> observer are based on class declaration way,so that no override happens.
Please remember to quote the previous message and insert your comments
inline so someone finding the conv
class Foo < ActiveRecoed::Base
has_many :www_links, :as => :owner
end
class WwwLink < ActiveRecord::Base
belongs_to :owner, :polymorphic => true
attr_accessible :href
end
I want to ensure that each Foo instance does not have same links (href).
My first attempt would be to write validation
thanks,colin.it seems the other two callback ways: handler class and
observer are based on class declaration way,so that no override happens.
--
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
On 2 January 2011 05:07, Ralph Shnelvar wrote:
> I have the following HAML code
>
> ul{ 'id' => tutorials_ul }
> %li
> %a{'href' => '/videos/create-command-001.swf'}
> 'Edition swf'
> %li
> %a{'href' => '/videos/create-command-001.flv'}
> 'Edition flv'
>
> When the
On 2 January 2011 03:08, Guo Yangguang wrote:
> i always worry if myown active_record callback conflicts with rails'
> implemented corresponding one.i assume rails itself perhaps also use
> active_record callback.for example:
>
> #myown callback
> class Book < ActiveRecord::Base
> def after_save
56 matches
Mail list logo