Re: [Rails] Re: Getting error when using Devise and Twitter-Bootstrap

2012-04-06 Thread Abram
Try using execjs instead of therubyracer On Sat, Apr 7, 2012 at 4:49 PM, Karthikeyan A k wrote: > Well ruby tracer is there but it looks useless for this stuff > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ru

Re: [Rails] Upgrading to Rails 3

2012-04-06 Thread Chirag Singhal
Hi Gurdipe, There is a series of RailsCasts that you can watch to get a reasonable idea of how to approach the upgrade. http://railscasts.com/episodes?search=upgrading+to+Rails+3 Chirag http://sumeruonrails.com On Sat, Apr 7, 2012 at 1:46 AM, Jason Fleetwood-Boldt wrote: > > > Check out > ht

[Rails] Re: Getting error when using Devise and Twitter-Bootstrap

2012-04-06 Thread Karthikeyan A k
Well ruby tracer is there but it looks useless for this stuff -- 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 unsubscri

Re: Re[2]: [Rails] Rails & PHP

2012-04-06 Thread Fernando Almeida
PHP + Ruby = Phuby =) https://github.com/tenderlove/phuby http://www.youtube.com/watch?v=4_zq9oW71sg 2012/4/6 Ralph Shnelvar > Jason, > > Friday, April 6, 2012, 2:18:53 PM, you wrote: > > > JFB> Yea, I would even consider keeping the existing PHP app at " > www.xyz.com" and making your Rails

[Rails] AJAX form (using simple_form) with preserved error validation

2012-04-06 Thread Abram
I know it's unlikely that anyone will check this link, but here's hoping http://stackoverflow.com/questions/10051050/ajax-form-using-simple-form-with-preserved-error-validation Sorry, too hard to explain without showing the pics. Abram -- You received this message because you are subscribed to

Re[2]: [Rails] Rails & PHP

2012-04-06 Thread Ralph Shnelvar
Jason, Friday, April 6, 2012, 2:18:53 PM, you wrote: JFB> Yea, I would even consider keeping the existing PHP app at "www.xyz.com" and making your Rails app "services.xyz.com" or something like that JFB> But Walter's hack might work. Alternatively there's some fancy mod_rewrite I'm sure apach

Re: [Rails] List all Models, Controllers, Views and Tests

2012-04-06 Thread Rogerio Medeiros
Hello in ur app, get models Dir['app/models/*.rb'].map {|f| File.basename(f, '.*').camelize.constantize } def get_model_names_sub Module.constants.select do |constant_name| constant = eval constant_name if not constant.nil? and constant.is_a? Class and constan

[Rails] Query to add edited entries to the top of a paginated list

2012-04-06 Thread Clem Rock
Hello, I have a will paginated list of properties and I'm trying to find a way to display the most recently updated entries at the top of the list based on their most current modify date.The approach I'm taking is to use mysql UNION in paginate_by_sql and here's my code: [code] #property_ids

[Rails] List all Models, Controllers, Views and Tests

2012-04-06 Thread Gurdipe Dosanjh
Hi All, List all Models, Controllers, Views and Tests I am writing a plug in and I need to list all the models and their related controllers, views and any unit test scripts for models, functional test scripts for controllers and integration test scripts for views. How would I be able to g

Re: [Rails] Rails & PHP

2012-04-06 Thread Leonardo Mateo
On Fri, Apr 6, 2012 at 4:53 PM, Ralph Shnelvar wrote: > I am inheriting a legacy PHP website and I want to add a few Rails pages. > > Is there anyone who can recommend some info on how to add RoR to a PHP-driven > website? > At the risk of going Off Topic, I would ask why on earth would you do t

[Rails] Re: Cannot set an attribute in my Join table do you think it matters which controller I use?

2012-04-06 Thread Tom Tom
I found a solution that resolved all my issues at this site, https://makandracards.com/makandra/1346-debug-nested-forms";>debugging nested_forms Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

Re: [Rails] Rails & PHP

2012-04-06 Thread Jason Fleetwood-Boldt
Yea, I would even consider keeping the existing PHP app at "www.xyz.com" and making your Rails app "services.xyz.com" or something like that But Walter's hack might work. Alternatively there's some fancy mod_rewrite I'm sure apache will do to direct request to the right app. But consider that

Re: [Rails] Upgrading to Rails 3

2012-04-06 Thread Jason Fleetwood-Boldt
Check out http://guides.rubyonrails.org/3_0_release_notes.html It is my personal recommendation that you do three things: 1) Create fresh new Rails 3 app for yourself to "play around in" first. In fact, you don't even need to play much, you just need to compare your existing config files to

Re: [Rails] Rails & PHP

2012-04-06 Thread Walter Lee Davis
On Apr 6, 2012, at 3:53 PM, Ralph Shnelvar wrote: > I am inheriting a legacy PHP website and I want to add a few Rails pages. > > Is there anyone who can recommend some info on how to add RoR to a PHP-driven > website? I've never tried this, but if you're using Passenger, it seems likely that

[Rails] Rails & PHP

2012-04-06 Thread Ralph Shnelvar
I am inheriting a legacy PHP website and I want to add a few Rails pages. Is there anyone who can recommend some info on how to add RoR to a PHP-driven website? Ralph Shnelvar -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to

Re: [Rails] sqlite3-ruby is invalid?

2012-04-06 Thread Walter Lee Davis
On Apr 6, 2012, at 3:37 PM, Jeff Kyzer wrote: > Hello > I have been learning ruby on rails 3 from the Michael hartl book, and > I have run into something that I can't figure out. After updating the > gem file and running bundle install, I am getting the following error > > You passed :required

[Rails] sqlite3-ruby is invalid?

2012-04-06 Thread Jeff Kyzer
Hello I have been learning ruby on rails 3 from the Michael hartl book, and I have run into something that I can't figure out. After updating the gem file and running bundle install, I am getting the following error You passed :required as an option for gem 'sqlite3-ruby', but it is invalid. Her

[Rails] Re: Upgrading to Rails 3

2012-04-06 Thread Gurdipe Dosanjh
Hi All, Re: Upgrading to Rails 3 I am working on a rails application I need to upgrade to the latest version of Ruby and Ruby on Rails. It is currently using: Ruby version 1.8.7 and Ruby on Rails version 2.3.5 Is there any information, tutorial, guides etc. I can follow Any help would be gre

Re: [Rails] Re: Re: web to show locate folder

2012-04-06 Thread Colin Law
On 6 April 2012 17:40, C.C Chen wrote: > Thanks, > > But my folder all are txt file(not html), just want they can show by web > interface. > > If I choose test.txt , test.txt content will show on web site right away. If you put the file in the public folder and open it with the browser (http://lo

[Rails] Re: Getting error when using Devise and Twitter-Bootstrap

2012-04-06 Thread Nikolay
gem 'therubyracer' Probably fix V8 errror. ;) -- 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 email to rubyonrails-talk+unsubsc

Re: [Rails] Re: Re: web to show locate folder

2012-04-06 Thread C.C Chen
Thanks, But my folder all are txt file(not html), just want they can show by web interface. If I choose test.txt , test.txt content will show on web site right away. Could you give me some suggestion? Thanks, Colin Law 於 2012年4月6日下午8:22 寫道: > On 6 April 2012 12:06, CC Chen wrote: > > Co

[Rails] Getting error when using Devise and Twitter-Bootstrap

2012-04-06 Thread Karthikeyan A k
Hello Group, I have written an app that uses devise and twitter bootstrap. When I host it on heroku I get the following error ActionView::Template::Error (undefined method `message' for [object Object]:V8::Object 2012-04-06T16:13:37+00:00 app[web.1]: (in /app/app/assets/stylesheets/bootstrap_an

[Rails] Re: rspec: identical tests fails when repeated

2012-04-06 Thread Fearless Fool
REDACTED! Okay, it's 100% my error. Ability#initialize IS getting called. The source of my woes: I was explicitly passing :user_id => 1001 to Premise#initialize, which was overriding the :user_id that CanCan was providing. It was bad luck (or bad judgement) that I chose 1001 as the id -- this c

[Rails] Re: Re: Rails Payment Gateway Solutions

2012-04-06 Thread Joel Dezenzio
Greg Akins wrote in post #1055148: > On Thu, Apr 5, 2012 at 10:36 AM, Joel Dezenzio > wrote: >> >> If anyone has used Paypal's advanced solution and integrated with Rails, >> I'll be interested to see your experience. >> > > I haven't used either, but I've heard bad things about Paypal and > grea

[Rails] Re: Re: rspec: identical tests fails when repeated

2012-04-06 Thread Fearless Fool
Colin Law wrote in post #1055228: > On 6 April 2012 01:10, Fearless Fool wrote: >> - the first test fails with response.message = "Not Acceptable" >> - the second test fails because count is not incremented. > > First look in test.log to see if there is any difference there, if > still no joy then

Re: [Rails] Re: Re: web to show locate folder

2012-04-06 Thread Colin Law
On 6 April 2012 12:06, CC Chen wrote: > Colin Law wrote in post #1055252: >> On 6 April 2012 11:42, CC Chen wrote: >>> >>> >>> Sorry, it is 'local folder'. >>> >>> >>> I want to select a file and it can show the context on web directly. >> >> Still not enough information I am afraid.  Local to wh

[Rails] Re: JRuby in Google Summer of Code...proposals open TODAY!

2012-04-06 Thread Charles Nutter
Last chance! GSoC proposals close TODAY at 19:00UTC, 12:00PDT! We can (and will) continue to discuss the proposals -- and we can continue to revise them -- during the two-week review period, so last-minute entries are acceptable. If you've been waiting for the last minute...THIS IS IT. Get you

[Rails] Re: Re: web to show locate folder

2012-04-06 Thread CC Chen
Colin Law wrote in post #1055252: > On 6 April 2012 11:42, CC Chen wrote: >> >> >> Sorry, it is 'local folder'. >> >> >> I want to select a file and it can show the context on web directly. > > Still not enough information I am afraid. Local to who? The server > or the client? Please give an ex

[Rails] Re: I can't update data in table

2012-04-06 Thread phoe san
Thank Fred! routes are considered in the order they are defined, so although you do have a put specific route, rails never even looks at it because it finds match '/ profile/:id' first.. This logic fix my error. phoesan -- Posted via http://www.ruby-forum.com/. -- You received this m

Re: [Rails] Re: web to show locate folder

2012-04-06 Thread Colin Law
On 6 April 2012 11:42, CC Chen wrote: > Colin Law wrote in post #1055229: >> On 6 April 2012 05:02, CC Chen wrote: >>> How to use web to show/display locate folder. >> >> I have no idea what you mean by that (though others may I suppose). >> Try asking the question again with a bit more detail of

[Rails] Upgrade from 3.0 to 3.1 and then to 3.2 - but keep 3.0 working

2012-04-06 Thread comopasta Gr
Hi, I have 3.0.5 rails apps and they are getting older. I'm planning the upgrade. The guides recommend to go first from 3.0 to 3.1 and then to 3.2 so that's what I will try. But while I do the upgrade I want to keep the projects fully working and probably even do some pushes to production with t

[Rails] Re: web to show locate folder

2012-04-06 Thread CC Chen
Colin Law wrote in post #1055229: > On 6 April 2012 05:02, CC Chen wrote: >> How to use web to show/display locate folder. > > I have no idea what you mean by that (though others may I suppose). > Try asking the question again with a bit more detail of what you mean. > What is the 'locate folder'

[Rails] Re: Rails new Project

2012-04-06 Thread comopasta Gr
Miguel A. wrote in post #1055016: > Hi all, im a newb and although I've googled I can't find a clear answer. > > Im running: Windows 7 x64 > Eclipse x64 with radrails plugin > Ruby 1.9.3p125 > Rails 3.2.3 > > I've installed some mysql connectors and gems and DevKit and executed: > "gem install mysq

[Rails] Re: Uninitialized Constant

2012-04-06 Thread comopasta Gr
Vishal Grover wrote in post #1055138: > Hi there > > i have used a code of opening the file and my test case is giving error > of UNINITIALIZED Constanta in the following line > > CSV::Reader.parse(File.open(@file, 'rb')) do |row| > > please give me solution what am i doing wrong Do yo have this a

[Rails] Re: New service to improve i18n management

2012-04-06 Thread comopasta Gr
Manuel Boy wrote in post #1055240: > Hi everyone! > > we have been working on phrase , a project around > the i18n gem. It provides the ability to translate a website using > in-place > edit. If you have ever developed a larger, localized project you might > have > run into t

[Rails] Re: I can't update data in table

2012-04-06 Thread Frederick Cheung
On Apr 6, 10:01 am, phoe san wrote: > > In Route ... > > match "/profile/:id" => "profile#index", :as => :profile > match "/profile/:id/edit" => "profile#edit", :as => :profile_edit > put '/profile/:id' => "profile#update"  ## method = put for update Your update action looks a little confused - i

Re: [Rails] passing value from controller to view

2012-04-06 Thread Colin Law
On 6 April 2012 10:02, amvis wrote: > > > I have done like that > <%= form_tag( { :controller => 'users', :action => 'login' }) do %> > <% end %> > > I am trying this for two days, i didn't get any solution..? Please don't top post, it makes it difficult to follow the thread, and also means that

Re: [Rails] I can't update data in table

2012-04-06 Thread Colin Law
On 6 April 2012 10:01, phoe san wrote: > ... >  def update > >    @user = User.find(params[:id]) > >    @user.email = params[:user][:email] > >    @user.save > > >      respond_to do |format| > >      if @user.save =  @user.update_attributes(params[:user]) > >        if @user.update_attributes(par

[Rails] Re: Pessimistic locking locks the entire table?

2012-04-06 Thread Frederick Cheung
On Apr 4, 12:47 am, PierreW wrote: > I don't know if using pessimistic locking is the best way to do it, > but here is why I used this: > > - every X hours a demon runs and updates records > - thing is, this demon "action" can last Y with Y > X > > So there is a risk that two instances of the de

[Rails] New service to improve i18n management

2012-04-06 Thread Manuel Boy
Hi everyone! we have been working on phrase , a project around the i18n gem. It provides the ability to translate a website using in-place edit. If you have ever developed a larger, localized project you might have run into the same issues as we did and phrase might be in

Re: [Rails] passing value from controller to view

2012-04-06 Thread amvis
I have done like that <%= form_tag( { :controller => 'users', :action => 'login' }) do %> <% end %> I am trying this for two days, i didn't get any solution..? On Friday, 6 April 2012 04:08:53 UTC-4, Colin Law wrote: > > On 6 April 2012 07:45, amvis wrote: > > require "rubygems" > > require

[Rails] I can't update data in table

2012-04-06 Thread phoe san
In my edit page: url = profile/:id/edit the content is ! <%= form_for(@user, :as => :user, :url => profile_path(current_user), :html=>{:method => :put}) do |form| %> <%= form.text_field :email, :class=>"input"%> <%= form.submit 'Update Profile'%> <% end %> In cont

Re: [Rails] passing value from controller to view

2012-04-06 Thread Colin Law
On 6 April 2012 07:45, amvis wrote: >  require "rubygems" >  require "twitter" > > def login > > Twitter.configure do |config| > config.consumer_key = '' > config.consumer_secret =  '' > config.oauth_token = '' > config.oauth_token_secret = '' >   end > >  @

Re: [Rails] web to show locate folder

2012-04-06 Thread Colin Law
On 6 April 2012 05:02, CC Chen wrote: > How to use web to show/display locate folder. I have no idea what you mean by that (though others may I suppose). Try asking the question again with a bit more detail of what you mean. What is the 'locate folder'? Colin -- You received this message beca

Re: [Rails] Re: rspec: identical tests fails when repeated

2012-04-06 Thread Colin Law
On 6 April 2012 01:10, Fearless Fool wrote: > MORE UPDATE: I beefed up the tests to look at the return code, the # of > Premises generated and the assignment.  And things only got stranger: > > >  context "POST create" do > >    context "with user logged in" do >      before(:each) do >        @us