[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] Re: Rails without Internet?

2013-03-14 Thread Andrew l.
@Jordon Bedwell Thank you very much for the prompt answer is there anyproblems with it running without internet or anythign special i have to do to make it run on windows only? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

Re: [Rails] Rails without Internet?

2013-03-14 Thread Jordon Bedwell
On Fri, Mar 15, 2013 at 12:52 AM, Andrew l. wrote: > Very simple question can rails run on windows only? with out the > internet? im trying to make a tool inventory program using ruby. and i > need it to run on windows only no internet. so can it be done? thanks > for the help i appreciate it. Ye

[Rails] Rails without Internet?

2013-03-14 Thread Andrew l.
Very simple question can rails run on windows only? with out the internet? im trying to make a tool inventory program using ruby. and i need it to run on windows only no internet. so can it be done? thanks for the help i appreciate it. -- Posted via http://www.ruby-forum.com/. -- You received t

[Rails] Exporting single table from Heroku database

2013-03-14 Thread Avi
Hello All, I want to export a single table from Heroku. Any suggestions how to export single table ? Thanks, Avi -- 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 e

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

2013-03-14 Thread news.anand11
I suggest you to look at, following gems: Devise -> Authentication CanCan -> Authorization rolify -> To manage roles Hope this would help you. On Fri, Mar 15, 2013 at 10:23 AM, haxuan lac wrote: > I'm trying create Demo Web with Roles Adim,User > I want my Demo have function same as: if user

[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] Re: Implementing Twitter's new Typeahead in Rails

2013-03-14 Thread Anthony DeFreitas
On Thursday, March 14, 2013 9:43:19 PM UTC-4, Anthony DeFreitas wrote: > > This relates to the new standalone typeahead that Twitter recently > released, not the Bootstrap version, see Twitter > Typeahead.js >

[Rails] Implementing Twitter's new Typeahead in Rails

2013-03-14 Thread Anthony DeFreitas
This relates to the new standalone typeahead that Twitter recently released, not the Bootstrap version, see Twitter Typeahead.js I'm trying to integrate this into a rails app to lookup sub-categories from the

Re: [Rails] Re: Rails and Jquery

2013-03-14 Thread Colin Law
On 14 March 2013 19:55, Robert Walker wrote: > Colin Law wrote in post #1101662: >> Well since the rest of the code is so simple it can't be that either, >> I assume. The obvious conclusion is that it is working correctly. >> >> Have a look at the rails guide on debugging which will give you >> t

Re: [Rails] No Migration Files are created

2013-03-14 Thread Colin Law
On 14 March 2013 17:13, Ryo Saeba wrote: > I've been working with Rails for 3 Months now, but haven't experienced > this problem until now. I'm currently working through Micharl Hartls > Tutorial and everything worked fine so far, but suddenly (chapter 11) I > can nolonger create Migration Files.

Re: [Rails] Error: did not find expected key while parsing a block mapping

2013-03-14 Thread Colin Law
On 14 March 2013 16:26, Dmitrij B. wrote: > ... > ActiveRecord::Fixture::FormatError: a YAML error occurred parsing > /home/dima/RubyOnRails/Projects/depot/test/fixtures/products.yml. Please > note that YAML must be consistently indented using spaces. Tabs are not > allowed. The exact error was: >

Re: [Rails] radio button not saving selected value

2013-03-14 Thread Colin Law
On 13 March 2013 11:48, NN Dodhia wrote: > Hi i have this code: > > <%= radio_button_tag(:milk_code,"Full.", :checked =>(:milk_code > =='Full.')) %> > <%= label_tag(:milk_code1, "Full") %> > > <%= radio_button_tag(:milk_code,"Milk.",:checked =>(:milk_code == > 'Skim'))%> > <%= label_tag(:

Re: [Rails] Heroku db id Starting with 1000

2013-03-14 Thread Colin Law
On 14 March 2013 06:57, avinash behera wrote: > So, my requirement is :- > > I have an Image table & a related_image table. > image has_many related_images. > & related_images belongs to many images. > Those images in both the tables are in sequence(we can change the sequence- > That will be a pro

[Rails] Re: Error: did not find expected key while parsing a block mapping

2013-03-14 Thread Dmitrij B.
help please) -- 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-talk+unsubscr...@googlegroups.com. To

[Rails] Re: Rails and Jquery

2013-03-14 Thread Robert Walker
Colin Law wrote in post #1101662: > Well since the rest of the code is so simple it can't be that either, > I assume. The obvious conclusion is that it is working correctly. > > Have a look at the rails guide on debugging which will give you > techniques that you can use to debug the code. The fi

Re: [Rails] Rails and Jquery

2013-03-14 Thread Colin Law
On 12 March 2013 22:50, Barry wrote: > Hellow, I have such problem. So I have usual .js.erb template, which is > called from controller with format.js > This template is just for testing now, so only calls alert message, if some > links are clicked. I didn't modified default layout document. > The

[Rails] nested forms - how to use before/after destroy callback ?

2013-03-14 Thread Javix
How is it possible to use a callback and which one to avoid the destroying of the last association. For example, there are 3 following models: #timesheet.rb class Timesheet < ActiveRecord::Base has_many :activities, dependent: :destroy has_many :time_entries, through: :activities accepts_ne

Re: [Rails] Which Gem to use ?

2013-03-14 Thread news.anand11
Hi Walter, That's great and would help me a lot. Thank You. On Thu, Mar 14, 2013 at 9:24 PM, Walter Lee Davis wrote: > > On Mar 14, 2013, at 8:26 AM, news.anand11 wrote: > > > I know the question is wired. But I was hoping some hints that what > commonly used by others. About payment to those wh

[Rails] Re: adventures with rails, cucumber, selenium, and a database

2013-03-14 Thread jsnark
I run the tests using: $ bundle exec cucumber It is my understanding that cucumber is built on top of rspec. I am also using test/fixtures and not factory_girl. The reason is that I am rewriting a perl terminal interface tool as a web application. The legacy database tables go back 10 years.

[Rails] No Migration Files are created

2013-03-14 Thread Ryo Saeba
I've been working with Rails for 3 Months now, but haven't experienced this problem until now. I'm currently working through Micharl Hartls Tutorial and everything worked fine so far, but suddenly (chapter 11) I can nolonger create Migration Files. when entering "rails g model Name field1:type" I

[Rails] Error: did not find expected key while parsing a block mapping

2013-03-14 Thread Dmitrij B.
I run test: test:units lass ProductTest < ActiveSupport::TestCase test "product attributes not be empty" do product = Product.new assert product.invalid? assert product.errors[:title].any? assert product.errors[:description].any? assert product.errors[:price].any?

Re: [Rails] Which Gem to use ?

2013-03-14 Thread Walter Lee Davis
On Mar 14, 2013, at 8:26 AM, news.anand11 wrote: > I know the question is wired. But I was hoping some hints that what commonly > used by others. About payment to those who will suggest, I am also helping > people who are asking questions on which I have struggled a lot. > But Thanks for your

[Rails] lookups on large sql server data base with Activerecord that is currently using shards

2013-03-14 Thread Jedrin
We have a sql server database which can have something like 50 meg of records of any one type. The way that the database was originally designed with activerecord/sql is that every time you get a couple of million records or so, it creates a new shard or a new table. In effect for one record t

[Rails] Re: topic on assotiations

2013-03-14 Thread Frederick Cheung
On Thursday, March 14, 2013 12:57:32 PM UTC, Barry wrote: > > Developing app, firstly I was about to set assotiations on my applications > like this (I have models Test, Key and Answer). > Test has many Keys, and Key has one Answer. > So in my Test model I set assotiation to Answers like this:

Re: [Rails] extracting tables content from a document in ruby

2013-03-14 Thread Scott Ribe
On Mar 14, 2013, at 2:52 AM, tamouse mailing lists wrote: > Hmmm... dunno whether to laugh or cry... Definitely don't cry. Unless you're the customer ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you ar

[Rails] topic on assotiations

2013-03-14 Thread Barry
Developing app, firstly I was about to set assotiations on my applications like this (I have models Test, Key and Answer). Test has many Keys, and Key has one Answer. So in my Test model I set assotiation to Answers like this: has_many :answers, :through => :keys. It seems to be logic: test has

Re: [Rails] Which Gem to use ?

2013-03-14 Thread news.anand11
I know the question is wired. But I was hoping some hints that what commonly used by others. About payment to those who will suggest, I am also helping people who are asking questions on which I have struggled a lot. But Thanks for your views. I have get some knowledge from that like Bitcoin, eXist

[Rails] How to trace the rendering response time in Rails?

2013-03-14 Thread Mohnish J.
I am making an API call which on completion gives a summary of how much time was consumed to make the ActiveRecord Queries to the DB and Render the views as a JSON Response. I am using Rails 3.2.11 . Here's a sample of the response time usage:- Completed 200 OK in 629ms (Views: 354.9ms | ActiveRe

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

2013-03-14 Thread Loganathan Sellapa
http://railscasts.com/episodes/360-facebook-authentication regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe On Thu, Mar 14, 2013 at 4:04 PM, haxuan lac wrote: > I'm using RoR to create Demo connectting Facebook.i'm rea

[Rails] [Rails 3.2] accepts_nested_attributes_for and time_select

2013-03-14 Thread bjp
Hi, I am upgrading a Rails application from Rails 3.1.11 to 3.2.12, but have a problem with ` accepts_nested_attributes_for` in conjunction with multipart attributes. The app is used to manage oral exams, so there is a model `Exam`, which has many `Examdate`s. When creating an exam, I can also

[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] Re: radio button not saving selected value

2013-03-14 Thread NN Dodhia
I tried that and it didnt work. any other ideas? On Wednesday, March 13, 2013 11:48:26 AM UTC, NN Dodhia wrote: > > Hi i have this code: > > <%= radio_button_tag(:milk_code,"Full.", :checked =>(:milk_code > =='Full.')) %> > <%= label_tag(:milk_code1, "Full") %> > > <%= radio_button_tag(

[Rails] Re: Rails adding computed field to a join of multiple tables

2013-03-14 Thread Sumit Srivastava
Also I did try it this way, arel = OfferOrder.includes(:a, :b).joins(:c).select('(CASE WHEN ISNULL(c.fields2) THEN c.fields1 ELSE c.field2 END) ') Got error, ActiveModel::MissingAttributeError (missing attribute: a_id): I did join on three tables. > > arel = OfferOrder.includes(:a, :b, :c) a

[Rails] Rails adding computed field to a join of multiple tables

2013-03-14 Thread Sumit Srivastava
I did join on three tables. arel = OfferOrder.includes(:a, :b, :c) arel = arel.select('(CASE WHEN ISNULL(c.field2) THEN c.field1 ELSE c.field2 END) AS fraud') but when I run my code it gives error that (Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to

[Rails] Re: adventures with rails, cucumber, selenium, and a database

2013-03-14 Thread andreo
Without a single doubt, using factory_girl +database_cleaner gem. Are you using the test framework from rails? or Rspec? here is a good episode http://railscasts.com/episodes/275-how-i-test explaining how to integrate this. and probably ehre talks about database cleaner https://gist.github.com/

Re: [Rails] extracting tables content from a document in ruby

2013-03-14 Thread tamouse mailing lists
Hmmm... dunno whether to laugh or cry... On Mar 13, 2013 2:15 PM, "Petite Abeille" wrote: > > On Mar 13, 2013, at 8:08 PM, "Shefali S." wrote: > > > How to extract table contents from a doc,docx and pdf using ruby on > > rails .Please reply as soon as possible > > Thank You..!!! > > Try this:

Re: [Rails] Heroku db id Starting with 1000

2013-03-14 Thread tamouse mailing lists
On Mar 14, 2013 1:58 AM, "avinash behera" wrote: > > So, my requirement is :- > > I have an Image table & a related_image table. > image has_many related_images. > & related_images belongs to many images. > Those images in both the tables are in sequence(we can change the sequence- That will be a