[Rails] Re: Rails without Internet?

2013-03-15 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

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

2013-03-15 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

[Rails] Re: No Migration Files are created

2013-03-15 Thread Ryo Saeba
All right, this is what I get, wehen I type rails g Model DingDong C:\Sites\sample_apprails g model DingDong SECURITY WARNING: No secret option provided to Rack::Session::Cookie. This poses a security threat. It is strongly recommended that you provide a secret to

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

2013-03-15 Thread news.anand11
I have done some of the code for facebook, twitter. Please go through this repo : https://github.com/sonianand11/omniauth_share_example On Fri, Mar 15, 2013 at 11:37 AM, haxuan lac li...@ruby-forum.com wrote: Thank Loganathan very much.I had done this problem -- Posted via

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

2013-03-15 Thread Colin Law
On 15 March 2013 04:53, haxuan lac li...@ruby-forum.com wrote: 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

Re: [Rails] Re: Rails without Internet?

2013-03-15 Thread Colin Law
On 15 March 2013 06:01, Andrew l. li...@ruby-forum.com wrote: @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? Most Rails developers use Linux (often Ubuntu) or

Re: [Rails] Re: Rails without Internet?

2013-03-15 Thread Colin Law
On 15 March 2013 06:01, Andrew l. li...@ruby-forum.com wrote: @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? In addition to my previous post I think it would

Re: [Rails] Re: No Migration Files are created

2013-03-15 Thread Colin Law
On 15 March 2013 07:56, Ryo Saeba li...@ruby-forum.com wrote: All right, this is what I get, wehen I type rails g Model DingDong Please don't top post, it makes it difficult to follow the thread. Insert your replies inline in the previous message. Remember this is a mailing list not a forum

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

2013-03-15 Thread Dmitrij B.
I read about the mistake, but I thought that this is due to the other. 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,

[Rails] Unable to recognize model - uninitialized constant Model

2013-03-15 Thread V M
I have a ruby on rails script that I run by issuing the command: sudo ruby script/mailman_serverThe contents of this file are: #!/usr/bin/env rubyrequire rubygemsrequire bundler/setuprequire mailmanrequire rb-inotifyrequire #{File.dirname __FILE__}/../config/environment

[Rails] Re: No Migration Files are created

2013-03-15 Thread Frederick Cheung
On Friday, March 15, 2013 7:56:03 AM UTC, Ruby-Forum.com User wrote: All right, this is what I get, wehen I type rails g Model DingDong C:\Sites\sample_apprails g model DingDong invoke active_record C:/Programme/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2

Re: [Rails] Unable to recognize model - uninitialized constant Model

2013-03-15 Thread Colin Law
On 15 March 2013 03:12, V M isakm...@gmail.com wrote: I have a ruby on rails script that I run by issuing the command: sudo ruby script/mailman_serverThe contents of this file are: #!/usr/bin/env ruby require rubygems require bundler/setup require mailman require rb-inotify require

[Rails] Future of Rails technologies

2013-03-15 Thread lekha p.
Hi all can you tell me about future of ruby on rails Technolgy Regards Lekha Pillai -- 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

Re: [Rails] Future of Rails technologies

2013-03-15 Thread Dheeraj Kumar
You really need to be more specific. Have you seen this? http://rubyonrails.org/applications -- Dheeraj Kumar On Friday 15 March 2013 at 3:48 PM, lekha p. wrote: Hi all can you tell me about future of ruby on rails Technolgy Regards Lekha Pillai -- Posted via

Re: [Rails] Re: No Migration Files are created

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 4:08 AM, Colin Law clan...@googlemail.com wrote: On 15 March 2013 07:56, Ryo Saeba li...@ruby-forum.com wrote: All right, this is what I get, wehen I type rails g Model DingDong Please don't top post, it makes it difficult to follow the thread. Insert your replies

Re: [Rails] Re: No Migration Files are created

2013-03-15 Thread Colin Law
On 15 March 2013 11:02, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Mar 15, 2013 at 4:08 AM, Colin Law clan...@googlemail.com wrote: On 15 March 2013 07:56, Ryo Saeba li...@ruby-forum.com wrote: All right, this is what I get, wehen I type rails g Model DingDong Please don't

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

2013-03-15 Thread tamouse mailing lists
On Thu, Mar 14, 2013 at 5:16 AM, Sumit Srivastava sumit.theinvinci...@gmail.com wrote: 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

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

2013-03-15 Thread sumit srivastava
On 15 March 2013 16:41, tamouse mailing lists tamouse.li...@gmail.comwrote: On Thu, Mar 14, 2013 at 5:16 AM, Sumit Srivastava sumit.theinvinci...@gmail.com wrote: Also I did try it this way, arel = OfferOrder.includes(:a, :b).joins(:c).select('(CASE WHEN ISNULL(c.fields2) THEN c.fields1

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

2013-03-15 Thread tamouse mailing lists
On Thu, Mar 14, 2013 at 9:06 AM, Scott Ribe scott_r...@elevated-dev.com wrote: 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 ;-) I know Kristen was being rather tongue-in-cheek, however,

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

2013-03-15 Thread andreo
So are you still using sqlite3 to run the tests? why didnt the tests see the difference on the database when using MySQL? On Thursday, 14 March 2013 18:46:23 UTC+1, jsnark wrote: I run the tests using: $ bundle exec cucumber It is my understanding that cucumber is built on top of rspec.

[Rails] Read Sqlite files from a Rails/MySQL app

2013-03-15 Thread Mattia nil
Hi guys, I'd Like to read an Sqlite file from my Rails with MySQL application. Is there any gem/library that will help me? I want to transfer the content of an SQLite3 database (coming from an old website), into my new Rails database. Thanks -- Posted via http://www.ruby-forum.com/. -- You

Re: [Rails] Read Sqlite files from a Rails/MySQL app

2013-03-15 Thread Colin Law
On 15 March 2013 12:14, Mattia nil li...@ruby-forum.com wrote: Hi guys, I'd Like to read an Sqlite file from my Rails with MySQL application. Is there any gem/library that will help me? I want to transfer the content of an SQLite3 database (coming from an old website), into my new Rails

[Rails] JOBS: Ruby/Python/PHP Ninjas wanted!

2013-03-15 Thread olivia . dunford
*Ruby/PHP/Python Developers – you’re invited to join a fantastic VC backed Cloud business based in Shoreditch, London. We have a multitude of opportunities spanning Ruby, PHP and Python, so whether you are a purist or wanting to add breadth to your career, there’s definitely something on

[Rails] RoR on CentOS 5, file permissions

2013-03-15 Thread Jussi Hirvi
I am learning RoR on CentOS 5. What would be the ideal way to set permissions in the app folder? The rails default did not work for me. I use git and apache/passenger. Everything works now that I - added apache to the group git (by modifying /etc/group) - did the following at tha app root

[Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Anthony DeFreitas
Ok, I made some progress. I know get results when I search but I'm getting the entire array instead of results just for the letter typed. Here's my Controller: def names names = [] all = SubCategory.where(name LIKE ?, %#{params[:term]}%) all.each { |subc| names subc.name }

Re: [Rails] RoR on CentOS 5, file permissions

2013-03-15 Thread Jordon Bedwell
On Fri, Mar 15, 2013 at 7:41 AM, Jussi Hirvi jushi...@gmail.com wrote: I am learning RoR on CentOS 5. What would be the ideal way to set permissions in the app folder? The rails default did not work for me. I use git and apache/passenger. Everything works now that I - added apache to the

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Colin Law
On 15 March 2013 13:19, Anthony DeFreitas anth...@caribbeanhotels.com wrote: Ok, I made some progress. I know get results when I search but I'm getting the entire array instead of results just for the letter typed. Here's my Controller: def names names = [] I am not sure that it is a

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Anthony DeFreitas
I am not sure that it is a good idea to have a variable with the same name as the method. At the least it could be confusing. Yeah, not a good practice, will change it, thanks. From the log: Started GET /sub_categories/names?q=a for 127.0.0.1 at 2013-03-15 09:45:40 -0400 Processing by

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Anthony DeFreitas
Ok, getting closer. I found this posthttp://stackoverflow.com/questions/6833281/sql-where-clause-that-begins-withwhich says if I remove the leading '%' in the query it will find entries that 'Begin' with what is typed. This didn't work for me though and my query follows the same format:

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Colin Law
On 15 March 2013 14:31, Anthony DeFreitas anth...@caribbeanhotels.com wrote: Please don't top post, it makes it difficult to follow the thread. Insert your reply at appropriate points in previous message. Thanks. Ok, getting closer. I found this post which says if I remove the leading '%' in

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Anthony DeFreitas
Sorry for not being so precise. Processing by SubCategoriesController#names as JSON Parameters: {q=a} SubCategory Load (0.8ms) SELECT sub_categories.* FROM sub_categories WHERE (name LIKE 'a%') On Friday, March 15, 2013 10:40:18 AM UTC-4, Colin Law wrote: On 15 March 2013 14:31, Anthony

[Rails] Rails 3 How to assign the value to nested attributes before calling save in update action

2013-03-15 Thread Manivannan J
I am using Rails 3.0.9 and Ruby 1.9.2 Models associations are document.rb has_many :sections accepts_nested_attributes_for :sections, :allow_destroy = :true, :reject_if = proc { |attrs| attrs.all? { |k, v| v.blank? } } section.rb belongs_to :document has_many :paragraphs,

[Rails] Re: Rails 3 How to assign the value to nested attributes before calling save in update action

2013-03-15 Thread Manivannan J
Console output: Started POST /documents for 127.0.0.1 at 2013-03-15 19:17:12 +0530 Processing by DocumentsController#create as HTML Parameters: {utf8=✓, authenticity_token=fvjouziWyDPCsTIJQvguXG1vvAIGy8ej5hR+69TTeIQ=, document={name=sample, sections_attributes={0={name=one, content_ids=[1,

[Rails] Re: Rails 3 How to assign the value to nested attributes before calling save in update action

2013-03-15 Thread Manivannan J
Console Output Started POST /documents for 127.0.0.1 at 2013-03-15 19:17:12 +0530 Processing by DocumentsController#create as HTML Parameters: {utf8=✓, authenticity_token=fvjouziWyDPCsTIJQvguXG1vvAIGy8ej5hR+69TTeIQ=, document={name=sample, sections_attributes={0={name=one, content_ids=[1,

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Colin Law
On 15 March 2013 14:59, Anthony at Caribbeanhotels.com anth...@caribbeanhotels.com wrote: On Fri, Mar 15, 2013 at 10:50 AM, Colin Law clan...@googlemail.com wrote: If you had put your reply inline you would have been more likely to answer my second question, what happens in this case? The

[Rails] Re: No Migration Files are created

2013-03-15 Thread Ryo Saeba
Thanks a lot Fred, you really helped me out! It looks like I used the wrong codeline in my application.rb Michael Hartls Tutorial required me to uncomment config.active_record.whitelist_attributes = true but instead I accidentally uncommented # config.active_record.observers = :cacher,

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

2013-03-15 Thread jsnark
The issue with cucumber, selenium and database transactions is described in: http://stackoverflow.com/questions/7511520/database-cleaner-transaction-with-cucumber-rails http://www.datatravels.com/technotes/2011/10/01/cucumber-capybara-with-selenium-and-truncated-fixt/ I also found suggested

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Anthony at Caribbeanhotels.com
The second question was (could you not have looked back at the message yourself?) what happens after the query, you said it does not work but did not say what was wrong. I did look back Colin but you implied that I didn't answer your question but I did answer it, just not to your

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread tamouse mailing lists
come to new land, expect everyone speak your language... -- 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] check how long individual active record queries take to the database

2013-03-15 Thread John Merlino
I know that Rails output log shows how many milliseconds a sql query take but I'm looking for something more fine-tuned. I want to know how long individual activerecord queries take on an indiivdual basis. For example, I have code that looks like this: items =

[Rails] Is there a way to tell if my server (ubuntu/apache) is using phusion passenger?

2013-03-15 Thread dv
Is there a way to tell if my server (ubuntu/apache) is using phusion passenger? -- 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

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread Colin Law
On 15 March 2013 15:15, Anthony at Caribbeanhotels.com anth...@caribbeanhotels.com wrote: The second question was (could you not have looked back at the message yourself?) what happens after the query, you said it does not work but did not say what was wrong. I did look back Colin but you

Re: [Rails] RoR on CentOS 5, file permissions

2013-03-15 Thread Jussi Hirvi
On Friday, March 15, 2013 3:33:39 PM UTC+2, Jordon Bedwell wrote: Passenger runs as the user and group Apache runs as. I once got an error message which implied that the db dir should be accessible to the user nobody:nobody - and my apache is set to run as apache:apache. I haven't

[Rails] [Job] Senior Front-end Developer @ Wimdu

2013-03-15 Thread Jennifer Garcia
*We are looking for Senior Front-end Developers to join our team in Berlin! * * * * * *The Company:* We are Wimdu, a cool start-up headquartered in the heart of Berlin. Initially funded with $90 million, Wimdu has grown to host over 150.000 properties in over 100 countries worldwide,

Re: [Rails] RoR on CentOS 5, file permissions

2013-03-15 Thread Frederick Cheung
On Friday, March 15, 2013 7:42:45 PM UTC, Jussi Hirvi wrote: On Friday, March 15, 2013 3:33:39 PM UTC+2, Jordon Bedwell wrote: Passenger runs as the user and group Apache runs as. I once got an error message which implied that the db dir should be accessible to the user

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

2013-03-15 Thread Robert Walker
haxuan lac wrote in post #1101341: 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

Re: [Rails] Is there a way to tell if my server (ubuntu/apache) is using phusion passenger?

2013-03-15 Thread Hassan Schroeder
On Fri, Mar 15, 2013 at 11:48 AM, dv dviglion...@gmail.com wrote: Is there a way to tell if my server (ubuntu/apache) is using phusion passenger? Look at the config file? :-) Alternatively, see if it's a loaded module? e.g. /usr/sbin/apache2 -t -D DUMP_MODULES | grep passenger That's where

[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] 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

[Rails] Do you ALWAYS use bundle exec rspec spec tests?

2013-03-15 Thread Jason Hsu, Android developer
I'm going through Michael Hartl's Rails tutorial, and I am happy to report that (as of the end of section 7) I'm able to get things working. (That said, I skipped the section on automated testing, as Hartl warned that automated testing is the most likely part of his book to become outdated.)

Re: [Rails] Do you ALWAYS use bundle exec rspec spec tests?

2013-03-15 Thread Matthew Witek
testing is important for when you try to introduce new features down the road or if you plan on refactoring your code. Its nice to have test that lets you know you didn't break stuff. Imagine making a change and having to check every page in your app… not fun and time consuming. If you are

[Rails] Best IDEs for Ruby on Rails

2013-03-15 Thread Jason Hsu, Android developer
What are your favorite IDEs for Ruby on Rails? Are there any good IDEs that IMMEDIATELY flag problems the way Eclipse does in Android development? Given the importance of testing, I'd like to use a tool that immediately and automatically flags problems. -- You received this message because

[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

Re: [Rails] Best IDEs for Ruby on Rails

2013-03-15 Thread news.anand11
Hi jason, There are several IDEs available for Rails development. You can try Aptana RedRails, JetBrains RubyMine. But most of the developer are following sublimetext , eMac, TextMate,Gedit,VIM i.e. light weight software. Hope this helpful to you. On Sat, Mar 16, 2013 at 10:10 AM, Jason Hsu,

[Rails] Re: Re: Rails without Internet?

2013-03-15 Thread Andrew l.
In addition to my previous post I think it would be very difficult to /develop/ the application on a machine without internet access. Running the app would not be a problem however. Colin I don't need to develop it without internet i just need the finished product to run without it. so