[Rails] How to write TDD by Rspec with background_job using workers

2013-08-18 Thread haxuan lac
Dear all, I want to write TDD Test with Rpec for Background_job using Worker I using Background_job and Worker for Upload,Dowload file.. Please give some advice for this problem. Thanks... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the G

[Rails] Re: Please give me some example about highchart in Rails using highcharts-rails gem

2013-07-15 Thread haxuan lac
I want a simple example using gem highchart-rails. but I also see example with gem lazy-highchart. So I expect somebody have done simple demo (small and easy level) can sent me to try. Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to t

[Rails] Please give me some example about highchart in Rails using highcharts-rails gem

2013-07-15 Thread haxuan lac
I have to build some report screeen for my project I want to use highcharts-rails gem to build this screen I research some document about it but I want someone have ever done with highcharts-rails gem can give me some advice if I use highchart in Rails Thanks.. -- Posted via http://www.ru

[Rails] Re: Ruby On Rails integrate with Object C

2013-06-24 Thread haxuan lac
I have some information about handleOpenURL with IOS<4.2 for delegate file and applicationpenURL:sourceApplication:annotation with IOS >=4.3 I don't konw how to use this method in ROR someone can solve for me this question ,please Thanks -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Ruby On Rails integrate with Object C

2013-06-24 Thread haxuan lac
I want to build Application with ROR and this App can integrate with Object same as Client But I don't know how to build it Please give me some advice for it. Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] How to create Migration from Mysql DB with bigint type of Mysql

2013-06-21 Thread haxuan lac
I have to create Migration file form Mysql DB But I want type of Migration equivalent with Mysql DB (example : in Mysql with type Bigint and in Migration will have type Int(20) or Bigint) Could You help me solve this Problem? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Why have to Generate a migration from an existing MySQL Database?

2013-06-20 Thread haxuan lac
I'm a newbie ROR I reading some Document and I know Generate a migration from an existing MySQL Database I don't know why have to do it?This action can solve problems? please someone ever to done this can explain for me this. Thanks -- Posted via http://www.ruby-forum.com/. -- You received

[Rails] Using Redis to Load Data-please help me!

2013-06-11 Thread haxuan lac
I'm doing with Redis and Mysql I have problem with Using Redis to Load Data. Before my Application load Data direct from query Mysql DB But now I want it only load form DB one time in 2 hours and in 2 hours, Application using Redis to load this Data After 2 hours,this App continue to query form DB

[Rails] Re: Error if i don't have 'create' method in user_controller and only have 'new' method

2013-06-06 Thread haxuan lac
Sorry,I can know about this problem. I think after click in submit Form and Post action of Form is called and in Route : POST /users(.:format) users#create this is reason that this app have to do 'create' method -- Posted via http://www.ruby-forum.com/. -- You received this mes

[Rails] Error if i don't have 'create' method in user_controller and only have 'new' method

2013-06-06 Thread haxuan lac
I'm trying with chapter 7 in RailsTutorial and have code in user_controller: def new @user = User.new end def create @user = User.new(params[:user]) if @user.save redirect_to root_url, :notice => "Signed up!" else render "new" end end if I remove 'create' method and Running

[Rails] please give some tutorial about Testing in Rails with Rspec and TDD

2013-06-03 Thread haxuan lac
Hi I'm doing with Test in Rails with Rspec and TDD I try to search some Link in Internet but I want somebody can give me instruction about Rspec and TDD. Thanks... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Ra

[Rails] Re: Can't setup Rails with RVM in ubuntu 12.04

2013-05-31 Thread haxuan lac
Thanks Colin,Mike I had done with instruction of You.And i tried with gem install rails --version '3.2.13' and add : [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" to Bashrc file This run.Thanks a lot -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Re: Can't setup Rails with RVM in ubuntu 12.04

2013-05-30 Thread haxuan lac
Thanks .I had solved my problem.I using sudo gem install rails and some command... -- 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 unsubscribe from this group and stop receiving emails from

[Rails] Can't setup Rails with RVM in ubuntu 12.04

2013-05-29 Thread haxuan lac
I'm doing setu Ruby on Rails with RVM. I had setup ruby 1.9.3 p429 and RVM,RubyGem... succesfully But I can't setup Rails with command : gem install rails because of error: ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dependencies: rails requires activesupport (=

[Rails] How to convert data MongoDB to Sqlite3

2013-04-11 Thread haxuan lac
I'm doing with small project using MongoDB. But MongoDB not have table so it is not easy for me to Test Data of it (Test Data with Relationship,query...) I want to use Sqlite3 for Test but in this project haven't got any Migration. Please advice me how to do for this problem? Thanks -- Posted via

[Rails] Re: Help me the error after replace sqlite3 by using MongoDb and MongoId

2013-04-10 Thread haxuan lac
Thanks Norbert Melzer I read railscast 238(mongoid) If I use command line: rails g mongoid:config then in my project have 2 DB :sqlite3+mongoDB And I see data after insert then save in MongoDB If I using both sqlite3+mongoDB above ,please tell me about my program have error with process data aft

[Rails] Help me the error after replace sqlite3 by using MongoDb and MongoId

2013-04-10 Thread haxuan lac
I want use MongoDB same as database of Project. I delete gem "sqlite3" and copied 2 gem: gem "mongoid", "~> 3.0.0" gem 'bson_ext' then had error : in `block in replace_gem': Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to

[Rails] Re: Help me bout gem 'acts_as_api' in RoR

2013-04-09 Thread haxuan lac
I have done this small demo with : https://github.com/fabrik42/acts_as_api/blob/master/examples/introduction/index.rb and scaffold in Rails -- 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 uns

[Rails] Help me bout gem 'acts_as_api' in RoR

2013-04-09 Thread haxuan lac
I'm working with 'acts_as_api' but I cant't understand how it to do I try to find tutorial about it with a small project using gem 'acts_as_api' but I'm afraid it is none. who can give me some advice to build small project use gem 'acts_as_api' Thanks.. -- Posted via http://www.ruby-forum

[Rails] Re: How to create 10000 pseudo data for Testing in RoR

2013-04-05 Thread haxuan lac
I tried create 1 pseudo by Faker but it's very slow. I fake 1000 record about 20 minutes. And 1 record take me 2-3 hours. please give me some advice about this time I had done with fake pseudo data(1000 and 1 pseudo). Thanks.. -- Posted via http://www.ruby-forum.com/. --

[Rails] How to manage data in MongoDB

2013-04-05 Thread haxuan lac
I'm working with MongoDB but i feel impatient with it. I want tool manage MongoDB same as PHPmyadmin(Mysql),Sqlite manager... I found some tool for this but I don't know what I shall use please give me some advice for this!Thanks... -- Posted via http://www.ruby-forum.com/. -- You received this

[Rails] Re: How to create 10000 pseudo data for Testing in RoR

2013-04-05 Thread haxuan lac
Thank Gintautas,Greg Akins very much I will do with instruction of you. Thank you vey much again!!! -- 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 unsubscribe from this group and stop receiv

[Rails] Re: How to create 10000 pseudo data for Testing in RoR

2013-04-05 Thread haxuan lac
Yes ,Thanks Gintautas If I want create 100(1 million) pseudo data,i can this way for it? And i hear a gem with called "faker" http://faker.rubyforge.org/ can i using this gem for solve my problem ( create 100 pseudo data)? Thanks very much -- Posted via http://www.ruby-forum.com/. -- Yo

[Rails] Re: How to create 10000 pseudo data for Testing in RoR

2013-04-05 Thread haxuan lac
Thanks Greg Akins I'm using MongoDB and in Mongodb has some table as: user,comment,photo,relationship And tables have ralationship(user relationship with photos..) Could you give me some advice for this problem?Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] How to create 10000 pseudo data for Testing in RoR

2013-04-05 Thread haxuan lac
I want to test performance of project. So i want make 1 record of table for testing. I don't know how to ganerate record. Who can help me? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr

[Rails] Error in controller Namespace of Route --Rails

2013-04-04 Thread haxuan lac
I'm trying to work with controller Namespace of Route. i'm doing with instructions in : http://guides.rubyonrails.org/routing.html and here is code of my Route: namespace :admin do resources :users end I created admin folder admin and move controller users_controller to it. And I edit code in

[Rails] Re: Help me with :only in Route of Rails

2013-04-04 Thread haxuan lac
Thanks Colin. I'm learning step by step Ruby on Rails with Railstutorial.org I solved my problem. -- 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 unsubscribe from this group and stop receivin

[Rails] Help me with :only in Route of Rails

2013-04-03 Thread haxuan lac
I'm learning with routing in rails from : http://guides.rubyonrails.org/routing.html and I have first code : resources :users and last code: resources :users, :only => [:index, :show] and have error : undefined method `edit_user_path' for #<#:0x53dacb0> can you help me this problem? -- P

[Rails] help me test how many requests can be available for one server in Ruby On Rails?

2013-03-28 Thread haxuan lac
I am try test how many requests can be available for one server in Ruby On Rails but i don't know how to do? I read some Page but i want ask some one can explaint more clearly this problem. If someone had done this problem can give me some advice?Thanks -- Posted via http://www.ruby-forum.com/.

[Rails] Help me about setup RVM in Ubuntu 12.04

2013-03-28 Thread haxuan lac
I 'm setting RVM for programing Ruby On Rails. I tried some instruction and setup successfully.But ruby version is 1.8.7 and Rails 2.3.14. I tried update Ruby by :Uninstall RVM then install curl,setup ruby 1.9.3 p125,gem install rails ,and Ruby ,Rails version Update successfully.. But after clo

[Rails] Re: how to test response time per one request in ROR

2013-03-28 Thread haxuan lac
Thank Robert I read in http://guides.rubyonrails.org/performance_testing.html I found with Wall Time,Process Time,User Time,Objects...Can I use this value same as test response time for 1 request in ROR.Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] how to test response time per one request in ROR

2013-03-28 Thread haxuan lac
I'm try test response time per one request in ROR but I don't know how to do? Could you give me some advice? Thanks -- 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 unsubscribe from this g

[Rails] Help me about Tool for Test Performance in ROR

2013-03-26 Thread haxuan lac
I try to do with Test Performance with Rails.I read http://guides.rubyonrails.org/performance_testing.html and in output of it not have much information about system. I heart Rails logger or Rails analyzer can show more information. Could you instruct for me tools test Performance in ROR? Thanks

[Rails] Help me about Tool for Test Performance in ROR

2013-03-26 Thread haxuan lac
I try to do with Test Performance with Rails.I read http://guides.rubyonrails.org/performance_testing.html and in output of it not have much information about system. I heart Rails logger or Rails analyzer can show more information. Could you instruct for me tools test Performance in ROR? -- Po

[Rails] Re: Help me about connect Facebook in Ruby on Rails

2013-03-26 Thread haxuan lac
Thanks.I understood this problem.I will learn gem "fb_graph".Thank you very much -- 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 unsubscribe from this group and stop receiving emails from it

[Rails] Help me about connect Facebook in Ruby on Rails

2013-03-24 Thread haxuan lac
Hi everyone I am doing connect with Facebook by instruction of Railscast-360. I connected Facebook and the homepage showed username of Facebook. But it only show username of developer (admin page). I want it can show username of many people same as friends of admin or everyone Can you give me some

[Rails] Help me about Bcrypt-ruby

2013-03-18 Thread haxuan lac
I'm create a login form using Bcrypt-ruby but have error: uninitialized constant User::BCrypt I had setup Bcrypt-ruby in Gemfile gem "bcrypt-ruby", :require => "bcrypt" and restart,rake db:migrate but not run.I had run bundle:install,bundle: update and see Bcrypt had installed. i'm afraid that

[Rails] Re: Help me about connect to server(localhost) show list Image

2013-03-16 Thread haxuan lac
I have read some tutorial from eg Railstutorial or RailsCast...and try some example But I have to create Demo in 15 days so I can't enough time to learn step by step.After 6 days I finish Demo I will more time to learn RoR and doing with RoR step by step -- Posted via http://www.ruby-forum.com

[Rails] Help me about connect to server(localhost) show list Image

2013-03-15 Thread haxuan lac
I'm trying to create Demo Web with RoR.I want upload Image form PC to server (localhost) then in Showpage can show list image that users had upload. I uploaded Image with PaperClip and can show this Image had just Upload but can't show List Image(all Images that all users Uploaded).Could you help m

[Rails] how to program with RoR?

2013-03-15 Thread haxuan lac
I'm a newbie RoR.I had to learning it about 15 days ago.I searching in Internet and I think program with RoR use many Gem Plugin(same as PaperClip,CanCan,Advise,...).With almost Problems have comptible Gem.So Programming with RoR don't have many sourcecode.I wants to ask Expert RoR(time do with RoR

[Rails] Re: Help me about Test-Unit in Ruby on Rails

2013-03-15 Thread haxuan lac
Thank Robert Walker for answer me I'm want to do with TDD style(http://www.agiledata.org/essays/tdd.html) Could you give me some advise.Thanks... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

[Rails] Re: Help me about connect Facebook in Ruby on Rails

2013-03-14 Thread haxuan lac
Thank Loganathan very much.I had done this problem -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails

[Rails] How to build App with Roles Admin,User..

2013-03-14 Thread haxuan lac
I'm trying create Demo Web with Roles Adim,User I want my Demo have function same as: if user login with Username and Password of Admin then you can have roles Delete,Edit..and if login as Username and Password of user is none I tried with Mysql and someone giveme some advise.Thanks -- Posted via

[Rails] Help me about connect Facebook in Ruby on Rails

2013-03-14 Thread haxuan lac
I'm using RoR to create Demo connectting Facebook.i'm reading some example but i can't run my Demo.I'm using example: http://madebymany.com/blog/tutorial-for-restful-authentication-on-rails-with-facebook-connect-in-15-minutes This example use Rails 2 and facebooker for Rails 2 and not compatible wi

[Rails] Help me about Test-Unit in Ruby on Rails

2013-03-13 Thread haxuan lac
I'm using RubyMine for developing RoR and i found in RubyMine have Test file.But I read in rubyforge http://test-unit.rubyforge.org/ have Test-Unit for RoR.Could you help me about 2 problem: - how is different between RubyMine Test-Unit and Test-Unit in rubyforge - how can i run Test-Unit with Test

[Rails] Re: Help me about Paperclip

2013-03-11 Thread haxuan lac
Thanks Colin.I understood what you said.i have done upload and dowload image with paperclip ,i hope you will help me about RoR.Thanks -- 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 unsubscr

[Rails] Re: Help me about Paperclip

2013-03-11 Thread haxuan lac
Thanks Colin. Could you tell me about some System can use? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rub

[Rails] Re: Help me about Paperclip

2013-03-10 Thread haxuan lac
Could you explain for me why Wubi is not Reliable?Thanks.. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rub

[Rails] Re: Help me about Paperclip

2013-03-10 Thread haxuan lac
Thanks Colin. i will try to with Virtual Machine.i'm a newbie about RoR so i want have more instruction from you.Thanks. -- 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 unsubscribe from this

[Rails] Help me about Paperclip

2013-03-10 Thread haxuan lac
I want to upload,dowload image in RoR and i know Paperclip can help me it.But i can't setup Paperlist in Win dow to run application.This is link i am learning http://codeabout.wordpress.com/2011/03/08/gem-paperclip-uploading-files-and-pictures-into-your-rails-application/.Could you help me...Thanks