[Rails] Re: Unable to deploy to Apache

2012-04-18 Thread Kal
Hi Walter, So, I finally got everything working here (with database and all). 1) I definitely had to create a new user 'app_user', add it to the sudoer file, and apply 'chown - R app_user /home/rubys/work/depot'. 2) I wasn't able to issue "RAILS_ENV=production bundle exec rake assets:precompile"

[Rails] Re: has_and_belongs_to_many: Item Already in Collection?

2012-04-18 Thread Frederick Cheung
On Apr 19, 5:24 am, bergonom wrote: > > When a user tries to add a new tag, I'm trying to detect if the > content already has the tag.J > > So ... I grab the tag like this: >      tag = Tag.where("name = ?", tag_name) > > Then I'm trying: >      if !...@content.tags.where(:id => "#{tag.id}").pre

[Rails] Job opportunity Sr. PHP Engineer needed in Santa Monica, CA Perm role (Ruby exp is ok)

2012-04-18 Thread Jennifer Bensusen
Good Afternoon, I am recruiting on behalf of Buffalo Studios. Buffalo Studios is a fast growing gaming software studio. They have a terrific start up like environment with a ton of opportunity for growth!! As a Sr. PHP Developer, you will contribute to exciting new games for social media stream

[Rails] has_and_belongs_to_many: Item Already in Collection?

2012-04-18 Thread bergonom
I'm putting together what should be a simple app using content and tags using has_and_belongs_to_many for each. create_table :contents_tags, :id => false do |t| t.references :content t.references :tag end When a user tries to add a new tag, I'm trying to detect if the content

[Rails] form_for with nested resources expects different path

2012-04-18 Thread Everton Cardoso
Hi guys, I have a problem with form_for helper method. Scenario: My models Org::Organization and Org::Member routes.rb -- namespace :org do resources :organizations do resources :members end end so, Rails creates helper methods like this: org

[Rails] CX Loves Ruby on Rails!

2012-04-18 Thread Nicki Escudero
Our CX cloud storage company has used Ruby on Rails to improve our services. We love it so much, we blogged about it! https://blog.cx.com/cloud-storage-news/ruby-on-rails/ Woo hoo! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t

[Rails] form_for with nested resources expects different path

2012-04-18 Thread Everton Cardoso
Hi guys, I have a problem with form_for helper method. Scenario: My models Org::Organization and Org::Member routes.rb -- namespace :org do resources :organizations do resources :members end end so, Rails creates helper methods like this:

[Rails] Ruby Openings

2012-04-18 Thread EchoStar
Troppus Software is seeking two Talented Ruby Engineers to join their team in the Boulder, CO area. The TEAM will be working with our Dish Online client. We're looking for people who love continual learning, and who must be comfortable mentoring others and being mentored so we can share each othe

Re: [Rails] install Rails from terminal

2012-04-18 Thread yan shi
hi,make sure that uve install ruby-dev package. 2012/4/19 sixxvirus sixxvirus > I have been having trouble install Rails from the terminal on my new > MacBook. I have tried to find a solution on both google and youtube, but > I have not find a solution to the problem > > $ rails -v > Rails is no

Re: [Rails] Lançamento http://www.taxei.com.br

2012-04-18 Thread Fernando M.Oliveira
Cara ficou legal, mas acho que faltou fltro para ordernar tipo menor valor, maior valor, mais comprados.. Em 18 de abril de 2012 11:14, ttaranto escreveu: > Bom dia galera! > > Venho aqui divulgar e buscar feedback de vocês sobre o lançamento de > um novo site. > > Chama-se http://www.taxei.com.

[Rails] install Rails from terminal

2012-04-18 Thread sixxvirus sixxvirus
I have been having trouble install Rails from the terminal on my new MacBook. I have tried to find a solution on both google and youtube, but I have not find a solution to the problem $ rails -v Rails is not currently installed on this system. To get the latest version, simply type: $ sudo ge

[Rails] Re: Switch between environments

2012-04-18 Thread Kal
Thank you very much, Hassan. Your answer definitely helps a lot. I'm obviously framing the ROR environments concept incorrectly. It looks like I've got to hit the books a lot harder to avoid straying down the wrong path. Thanks, ~Kal On Apr 18, 12:35 pm, Hassan Schroeder wrote: > On Tue, Apr

[Rails] Re: Switch between environments

2012-04-18 Thread Kal
Thank you very much Walter, not only for this very concise answer (which explains a lot), but for all of your help with my previous inquiries. Yes, I was very much under the impression that development and production is meant to be (or at least, can be) performed on the same physical machine runni

[Rails] tfs api from rails

2012-04-18 Thread Eric Stockbridge
does anyone have an idea if there is a way to make calls to the TFS api from a rails app? i think i saw something about team system web access having a soap api that you can use. the reason i ask is I am creating a web ap at work for us to use and we want to be able to add work items to tis and tr

[Rails] Re: Sviluppatore Ruby

2012-04-18 Thread Cluter Vipic
Ciao, mi sa che hai sbagliato forum (questo e' il forum in inglese) devi scrivere il post del forum che si aprirà' cliccando il seguente link: http://www.ruby-forum.com/forum/19 in bocca al lupo, bye, C -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Rspec

2012-04-18 Thread Jeff Kyzer
Hello all Something that once worked is no longer. I am learning Rails from the book "Ruby On Rails 3 by Michael hartl, so i am going "by the book" I am using rspec to run tests. I believe i have downloaded all the necessary gems and run bundle install. I am using windows 7. When I run rspec

[Rails] Re: validates_uniqueness_of question

2012-04-18 Thread Gurdipe Dosanjh
Hi All, I am trying write a validation rule where I need to ensure that when a certain value is updated or created in a particular columns, a number of other columns columns are unique and that another column does not contain a certain value. I have been able to use the validates_uniqueness_of

[Rails] Re: @import 'bootstrap' error on win7 , showing 500 error

2012-04-18 Thread jrp
Problem is solved now. I copied the whole project to C drive and now Bootstrap is running fine. It seems that Bootstrap gem has a bug. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://grou

[Rails] any docs on integrating modular Sinatra with Ruby on Rails?

2012-04-18 Thread soldier.coder
I'm very interested in using some modular Sinatra to do certain things within a Ruby on Rails app. Any pointers as to where I might find how to do this? Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send

Re: [Rails] Re: Switch between environments

2012-04-18 Thread Hassan Schroeder
On Tue, Apr 17, 2012 at 11:59 PM, Kal wrote: > So this is my question: How do I move everything to the "production > environment".  I'd imagine that is the ultimate goal, is it not? Actually, no. > How do I copy the data to production.sqlite3 To amplify on other responses, it's *not* at all ty

Re: [Rails] Re: Switch between environments

2012-04-18 Thread Walter Lee Davis
On Apr 18, 2012, at 4:23 AM, Kal wrote: > Thanks Much Aash, > > But as someone already replied: > > "It only creates tables, but how to transfer data from these tables? > And I think It is same that rake db:migrate RAILS_ENV=production" > > I've gotten as far as "rake db:migrate RAILS_ENV=prod

[Rails] Re: RoR - Search Forms with Checkboxes, display appropriate results

2012-04-18 Thread Miguel A.
aash dhariya wrote in post #1057118: > Maybe this could be your answer: > > def self.search(params) >if params > query = "SELECT * FROM Hotel where city LIKE '#{params[:search]}' > OR > name LIKE '#{params[:search]}'" > query+= "AND rating = #{params[:rating]}" if params[:rating] >

[Rails] Sviluppatore Ruby

2012-04-18 Thread flavia romano
Ciao a tutti!! La società presso la quale lavoro è alla ricerca di uno Sviluppatore Ruby. Di seguito troverete la job-profile Resto a disposizione per qualsiasi chiarimento/info Contattatemi a flavia.rom...@2night.it 2night SpA, azienda leader in Italia nel settore dell'entertainment, ricerca SVI

[Rails] Lançamento http://www.taxei.com.br

2012-04-18 Thread ttaranto
Bom dia galera! Venho aqui divulgar e buscar feedback de vocês sobre o lançamento de um novo site. Chama-se http://www.taxei.com.br um novo modelo de compras na internet. Desenvolvido em: Ruby On Rails + MongoDB Você diz quanto quer pagar por um produto, e os lojistas recebem todas as ofertas q

Re: [Rails] Access denied for user 'root'@'localhost' (using password: NO)

2012-04-18 Thread Charles A. Lopez
sounds like a permission issue on MySQL. if you have shell access, try getting on the SQL monitor with the username and password. On 21 November 2010 09:25, Renato Viana wrote: > I am getting this message after run: ruby script/server and click in > "About your application environment" in the

Re: [Rails] RoR - Search Forms with Checkboxes, display appropriate results

2012-04-18 Thread aash dhariya
Maybe this could be your answer: def self.search(params) if params query = "SELECT * FROM Hotel where city LIKE '#{params[:search]}' OR name LIKE '#{params[:search]}'" query+= "AND rating = #{params[:rating]}" if params[:rating] @hotels = find_by_sql(query) arel else

Re: [Rails] Re: Access denied for user 'root'@'localhost' (using password: NO)

2012-04-18 Thread Greg Akins
On Tue, Apr 17, 2012 at 11:59 PM, pradeek k wrote: > 1.grant all privileges in mysql with your yaml database > 2.add password to your yaml > 3.if yaml parse error,check whether you didnt leave any space in between > your password and password line column,if not put one space,it has to follow > in

[Rails] RoR - Search Forms with Checkboxes, display appropriate results

2012-04-18 Thread Miguel A.
I have a form that allows me to search a hotel by city or name and by rating through radio buttons. It all works. However, my hotel model has_one :facility, this facility model is composed by several boolean fields (for example, roomservice:boolean restaurant:boolean and so on) The question is, I

[Rails] Asset pipeline and depending on files outside of /app/assets directory

2012-04-18 Thread Szymon Nowak
Hi, I'm generating a js file with all translations from Rails I18n backend and the issue is that when I change translations in config/locales directory, the js file is not recompiled in development env. Is there any way to tell asset pipeline/sprockets that this particular js file depends on al

Re: [Rails] Re: Switch between environments

2012-04-18 Thread aash dhariya
ok...I browsed across some gems and found this: https://github.com/mattconnolly/rails-backup-migrate .this helps in dumping the whole database in a single file which can then be restored. Let me know if it works in your case On Wed, Apr 18, 2012 at 1:53 PM, Kal wrote: > Thanks Much Aash, > >

[Rails] Re: Switch between environments

2012-04-18 Thread Kal
Thanks Much Aash, But as someone already replied: "It only creates tables, but how to transfer data from these tables? And I think It is same that rake db:migrate RAILS_ENV=production" I've gotten as far as "rake db:migrate RAILS_ENV=production" from my research thus far... Seriously, there's n

[Rails] Re: Access denied for user 'root'@'localhost' (using password: NO)

2012-04-18 Thread pradeek k
1.grant all privileges in mysql with your yaml database 2.add password to your yaml 3.if yaml parse error,check whether you didnt leave any space in between your password and password line column,if not put one space,it has to follow in all all lines. for eg:password: your_password. 4.try rake d

Re: [Rails] Re: Switch between environments

2012-04-18 Thread aash dhariya
http://stackoverflow.com/questions/7291381/rails-how-to-migrate-data-from-development-sqlite3-database-to-production-mysqlthis may be helpful to migrate from development to production. On Wed, Apr 18, 2012 at 12:29 PM, Kal wrote: > Thanks Hassan, > > This is exactly what I don't get! > > The

Re: [Rails] Re: Switch between environments

2012-04-18 Thread vmo...@vh-daf.ru
Send me your profile. Thank you. 18.04.2012 10:59, Kal написал: > Thanks Hassan, > > This is exactly what I don't get! > > The "Development" environment is the default environment in Rails, > yes? > > Now, that means my data is contained in development.sqlite3 and 'rails > server' starts WEBrick

Re: [Rails] User Stream

2012-04-18 Thread Colin Law
On 17 April 2012 22:31, Hesham wrote: > I have an app that has users, these users have friends (typical SN), > I' creating a user stream by collecting all posts created by the > user's friends. > > I don't have the code with me, but I feel that what I have is very un > Ruby/Rails like and would ap

[Rails] Re: Ruby on Rails Professional Required

2012-04-18 Thread Roshani Rathod
send me your profile at rosh...@evoleas.com -- 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 unsubscribe from this group