[Rails] Multiple Song downloading

2012-01-18 Thread Deepika Vummiti
Hi, I Have download controller in my application.. In that i have def download_ordered_songs method, in that i have given my # AWS::S3::Base.establish_connection!( # :access_key_id => 'Put your Access Key ID Here', # :secret_access_key => 'Put your Secred Access Key here' # )

[Rails] rails associations

2012-01-18 Thread Daisy Di
Dear all, there are two tables ,one is product, one is location, product has many location, and location belongs to product, all the setting in the models i have done, now in the views/show.html.erb, i want to display the product and its locations, usually we use @product.locations to get all the

[Rails] parametes in the URL

2012-01-18 Thread Daisy Di
Dear All, There are two tables one is redemption_list,columns are: id(int),item_id(char(15)),points_required the other one is redemption_location,columns are: id(int),loc_id(char(3)),item_id(char(15)). ../models/redemption_list.rb has_many :redemption_locations, :foreign_key => "item_id" de

Re: [Rails] Cannot redirect to nil!

2012-01-18 Thread muhammad singgih zulfikar ansori
oh sorry, here i attach the complete errors from test: LineItemsControllerTest > > test_should_create_line_item >> ERROR > > Cannot redirect to nil! > > STDERR: > > Exception `ActionController::ActionControllerError' at >> /home/hirokakaoshi/.rvm/gems/ruby-1.9.3-p0/ge

[Rails] any help with installing gitorious?

2012-01-18 Thread Max
Hi all, My boss is trying to set up gitorious on an ubuntu machine and is going nuts. He's tried the newest ubuntu and an older version (because he hates the new desktop :)) >From what he's telling me it sounds like the problems are environmental: where ruby is installed - stuff like that. as a r

[Rails] Re: Adding a custom select to omniauth register form

2012-01-18 Thread Bob Fleming
Hi Walter, Thanks again. I've replied directly to your google groups registered email address wa...@wdstudio.com. I thought it might be more appropriate. Let me know if you get that ok or if you prefer me to continue using the google group. Cheers. On Jan 19, 10:16 am, Walter Lee Davis wrote

Re: [Rails] Re: Adding a custom select to omniauth register form

2012-01-18 Thread Walter Lee Davis
On Jan 18, 2012, at 3:20 PM, Bob Fleming wrote: > Hi Walter, > > Thanks for the email. > > I forgot to mention that despite the error the user and identity are > created. Just that the role field is blank in the database and you get > the error I mentioned in my email. > > I'm not 100% sure ho

[Rails] Re: Adding a custom select to omniauth register form

2012-01-18 Thread Bob Fleming
Hi Walter, Thanks for the email. I forgot to mention that despite the error the user and identity are created. Just that the role field is blank in the database and you get the error I mentioned in my email. I'm not 100% sure how to display the fields that send the omniauth credentials - so I ca

Re: [Rails] Adding a custom select to omniauth register form

2012-01-18 Thread Walter Lee Davis
On Jan 17, 2012, at 10:26 PM, Bob Fleming wrote: > Hi, > > I'm creating a rails app using omniauth 1.0.1 on Rails 3.1.3 and ruby > 1.9.2 > > I'm having trouble adding a select field that populates from a class > constant in my user model. > > Here's my model: > > class User < ActiveRecord::Ba

Re: [Rails] Re: Polymorphic and standard association issue

2012-01-18 Thread Peter Vandenabeele
On Wed, Jan 18, 2012 at 6:53 PM, Keith Raymond wrote: > I'm sorry to anyone who has spent any time on this at all. I hope since > I found the problem so quickly after posting this no one has. > No prob. I was looking into it and was going to suggest this version: @user = User.find(1) new_role

[Rails] Re: Polymorphic and standard association issue

2012-01-18 Thread Keith Raymond
I'm sorry to anyone who has spent any time on this at all. I hope since I found the problem so quickly after posting this no one has. The issue was that I was attempting to find all roles for the currently logged in user. While they are creating a new User. Basically @user was set in the cont

Re: [Rails] Usage statistics.

2012-01-18 Thread Dave Aronson
On Wed, Jan 18, 2012 at 09:42, bertly_the_coder wrote: > users do things like vote, give opinions > etc. Now I want to collect this data and display it, possibly using > flot, to show the break down of users by age, sex, location, etc etc. > I was initial going to hit the database for each query

[Rails] Polymorphic and standard association issue

2012-01-18 Thread Keith Raymond
Hello all, I'm having a strange issue with a model that belongs_to two other models. The one association is polymorphic and the other is normal. class Role < ActiveRecord::Base belongs_to :user belongs_to :permission, :polymorphic => true end class User < Ac

[Rails] trouble in passing select tag values in a rails application

2012-01-18 Thread hitesh
new on rails, i am having problem in passing select_tag value(in the view file) to controller. my view controller file is like class ProjectStatusController < ApplicationController def index @projects = Project.find(:all, :select => "name") end def show lookup = params[:project]

[Rails] Sending custom headers in Find method in ActiveResource:Base

2012-01-18 Thread Nadeem J. Qureshi
Hi there, About this method: http://apidock.com/rails/ActiveResource/Base/find/class How do I set custom headers? I am communicating with a Rest API that requires a cookie. I've tried a lot of different things, searches and been looking for a solution a long time now. Please help. Regards, N

[Rails] Hiring in NYC or DC: Ruby on Rails Web Developers for Global Financial Software Firm

2012-01-18 Thread Kim Wathey
The Role Web Products is seeking a highly-motivated web developer with a minimum of 5 years experience building large scale, highly-trafficked web applications. Successful candidates are creative programmers with intimate knowledge on the quirks of the internet (and browsers) and have the desire t

[Rails] RoR Developer - Intern / New Grad - for exciting start-up in Munich/Germany

2012-01-18 Thread doubleU
Web Application Developer – Ruby on Rails We are building a great start-up team. Wanna join? – Software Developer, on the level of • Intern / New Grad • Experienced Developer, graduated or not You look for the freedom to design a career leveraging or acquiring (building up) skills i

[Rails] Adding a custom select to omniauth register form

2012-01-18 Thread Bob Fleming
Hi, I'm creating a rails app using omniauth 1.0.1 on Rails 3.1.3 and ruby 1.9.2 I'm having trouble adding a select field that populates from a class constant in my user model. Here's my model: class User < ActiveRecord::Base ROLES = ["Customer","Service Supplier"] has_many :leads valida

[Rails] Rails for Beginners Course - Live Instructor, 8 spots left

2012-01-18 Thread Paul Lambert
Hi there, My startup, Matygo, is running our second live Rails for Beginners course starting next week. This course is for people who are new to Rails, or have yet to dive in, and want to get a head start getting up to speed. Registration Link: http://bit.ly/matygo-rails-beginners-jan-2012 Our c

[Rails] Re: Need some advice on how to start a rails app

2012-01-18 Thread mike
In the example given, it's a relationship between users and organizations. the join table (memberships) would have a field (column) named user_id and column named organization_id. All of the tables, as is rails convention, would have a ID column which is the primary key. The relationship betwee

Re: [Rails] Rails 3 with iPhone

2012-01-18 Thread Javier Quarite
On Wed, Jan 18, 2012 at 6:09 AM, angel david wrote: > Hi all, > > Im working in a project where i will get response from iPhone. But while > getting this, Im getting a bunch of errors like this.. > > > > Error during failsafe response: ActionView::Template::Error > > > /usr/lib/ruby/gems/1.8/ge

[Rails] Re: strange 406 Not Acceptable on redirect after update

2012-01-18 Thread Erwin
[SOLVED] sorry for posting too fast ... pasting my code , I just noticed that I had a respond_to do |format| block in my update code . removing it did the trick ! I don't understand yet why .. but I'll do some search about it On Jan 18, 4:44 pm, Erwin wrote: > after record create ,

[Rails] strange 406 Not Acceptable on redirect after update

2012-01-18 Thread Erwin
after record create , the redirect to admins_partners_url is working fine ( :index displaying the page) but after the update , the record update is performed , but I get this error ...`updated_at` = '2012-01-18 14:57:08' WHERE `partners`.`id` = 7 (10.1ms) COMMIT Redirected to http://lvh.

Re: [Rails] formatting a date string

2012-01-18 Thread Rob Biedenharn
On Jan 17, 2012, at 8:26 PM, John Merlino wrote: > Hey all, > > > I have 90 records in database with this kind of format: 2011-05-10 > 11:23:15 > > So they are all 2011-05-10 but have different times. > > User enters two dates, and just in case the two dates are the same, I > want to ensure I

[Rails] Usage statistics.

2012-01-18 Thread bertly_the_coder
Hey guys, This is a mind jogger rather than a question. I have a rails site, and this site has users, there users do things like vote, give opinions etc. Now I want to collect this data and display it, possibly using flot, to show the break down of users by age, sex, location, etc etc. I was initi

[Rails] Re: using a link in a view , flash message doesn't clear

2012-01-18 Thread Erwin
Thanks a lot Jim ... I forgot it ... :-(( On Jan 18, 2:25 pm, Jim Ruther Nill wrote: > On Wed, Jan 18, 2012 at 7:23 PM, Erwin wrote: > > I have a specific application helper do display all my flash messages > > ( according to my css ) > > >  def flash_messages > >    result ="" > >      %w(notic

Re: [Rails] using a link in a view , flash message doesn't clear

2012-01-18 Thread Jim Ruther Nill
On Wed, Jan 18, 2012 at 7:23 PM, Erwin wrote: > I have a specific application helper do display all my flash messages > ( according to my css ) > > def flash_messages >result ="" > %w(notice warning error alert).each do |msg| ># change skin labels >box = "info_box" if ms

[Rails] Functional Testing

2012-01-18 Thread The Rising Sword
Hi all, I am new in Testing I want to test my oauth controller which is using facebook login and callback I want to prepare the test case for that and home controller contains class HomeController < ApplicationController layout 'home',:only=>["new"] before_fil

[Rails] [ANN] RubyNation Conference Call for Speakers is Open (Tix, too)!

2012-01-18 Thread Gray Herter
Want to speak at RubyNation, an annual two-day, dual-track technical conference presented by the Washington, DC area Ruby Community? Then we want to hear from you! Submit a presentation proposal! Know someone who would be a great speaker for us? Then help us out and let them know that we want to h

Re: [Rails] Need some advice on how to start a rails app

2012-01-18 Thread Colin Law
On 17 January 2012 13:24, Mohamad El-Husseini wrote: > @Jordan, thank you for the explanation. I'm having a hard time seeing what > the relationships model looks like:  id, user_id, blog_id, > relationship_type_id? In that, the relationship_type_id decides if the > relationship is a user or an edi

Re: [Rails] Need some advice on how to start a rails app

2012-01-18 Thread Mohamad El-Husseini
Bump -- 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://groups.google.com/d/msg/rubyonrails-talk/-/WT-AkUpfUnkJ. To post to this group, send email to rubyonrails-talk@googlegroups.com. To uns

[Rails] using a link in a view , flash message doesn't clear

2012-01-18 Thread Erwin
I have a specific application helper do display all my flash messages ( according to my css ) def flash_messages result ="" %w(notice warning error alert).each do |msg| # change skin labels box = "info_box" if msg == "notice" box = "tip_box" if msg == "warning"

Re: [Rails] error on starting ruby server on Fedora 14

2012-01-18 Thread Peter Vandenabeele
On Wed, Jan 18, 2012 at 11:10 AM, sachin kewale wrote: > On 1/18/12, Peter Vandenabeele wrote: > > On Wed, Jan 18, 2012 at 10:43 AM, sachin kewale > > wrote: > > > >> hi all, > >> > >> i am getting following error on starting server by using "ruby > >> script/server webrick -b some_Ip_address" o

[Rails] Rails 3 with iPhone

2012-01-18 Thread angel david
Hi all, Im working in a project where i will get response from iPhone. But while getting this, Im getting a bunch of errors like this.. Error during failsafe response: ActionView::Template::Error /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.1/lib/active_support/whiny_nil.rb:48:in `method_mi

Re: [Rails] Is their any plugin/gem available to improve performance

2012-01-18 Thread Muruga
On Tue, Jan 17, 2012 at 1:10 PM, loganathan sellappa < loganathan...@gmail.com> wrote: > Hi All, > > I am having an ror application with ruby1.8.7 and rails2.3.5, the > performance of my application is not good enough. Is their any plugin or > gem available to improve the performance. Also I have

[Rails] Re: How to change the value of User attribute

2012-01-18 Thread dmlicht
change you password validation to add :on => :create to your password validation. It makes it so the validations are only called for the specified controller action. example: validates :password, :presence => true, :on => :create Check out the rails guide for more info http://guides.rubyonrails.

[Rails] Re: Multiple Song downloading

2012-01-18 Thread Deepika Vummiti
Hi, Thanks for your reply, I will do in that way. Thanks, Deepika. -- 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 un

[Rails] Re: Is their any plugin/gem available to improve performance

2012-01-18 Thread Deepika Vummiti
Loganathan S. wrote in post #1041252: > Hi All, > > I am having an ror application with ruby1.8.7 and rails2.3.5, the > performance of my application is not good enough. Is their any plugin or > gem available to improve the performance. Also I have already optimized > some of my code and db queries

Re: [Rails] Accessing the ROR Application

2012-01-18 Thread sachin kewale
On Tue, Jan 17, 2012 at 11:46 AM, Lito Manansala wrote: > replace 0.0.0.0 with your IP address. > > if your centos server IP is 192.168.168.2 then you should access it using > this address > http://192.168.168.2:3006 > > make sense? > > Thank You > > /Lito Manansala > twitter: @avmanansala

[Rails] Re: error on starting ruby server on Fedora 14

2012-01-18 Thread venkata reddy
Try to run from other port like rails s -p 4000 and visit http://localhost:4000 On Jan 18, 3:10 pm, sachin kewale wrote: > On 1/18/12, Peter Vandenabeele wrote: > > > > > > > > > > > On Wed, Jan 18, 2012 at 10:43 AM, sachin kewale > > wrote: > > >> hi all, > > >> i am getting following error on

Re: [Rails] error on starting ruby server on Fedora 14

2012-01-18 Thread sachin kewale
On 1/18/12, Peter Vandenabeele wrote: > On Wed, Jan 18, 2012 at 10:43 AM, sachin kewale > wrote: > >> hi all, >> >> i am getting following error on starting server by using "ruby >> script/server webrick -b some_Ip_address" on Fedora 14 ,is anyone know >> why this is coming ? >> >> >> INFO WEBri

[Rails] Re: How to change the value of User attribute

2012-01-18 Thread Daisy Di
Peter Vandenabeele wrote in post #1041264: > On Tue, Jan 17, 2012 at 9:12 AM, Daisy Di wrote: > >> times that is i want to change the value of other attributes, i must >> update the password, if not ,the updating will fail. >> >> how can i update without updating the password ? >> > > Check the Us

Re: [Rails] error on starting ruby server on Fedora 14

2012-01-18 Thread Peter Vandenabeele
On Wed, Jan 18, 2012 at 10:43 AM, sachin kewale wrote: > hi all, > > i am getting following error on starting server by using "ruby > script/server webrick -b some_Ip_address" on Fedora 14 ,is anyone know > why this is coming ? > > > INFO WEBrick 1.3.1 > [2012-01-18 04:37:13] INFO ruby 1.8.7 (2

[Rails] error on starting ruby server on Fedora 14

2012-01-18 Thread sachin kewale
hi all, i am getting following error on starting server by using "ruby script/server webrick -b some_Ip_address" on Fedora 14 ,is anyone know why this is coming ? INFO WEBrick 1.3.1 [2012-01-18 04:37:13] INFO ruby 1.8.7 (2011-02-18) [i386-linux] [2012-01-18 04:37:13] WARN TCPServer Error: Ca

[Rails] Re: displaying rails form validation errors inline

2012-01-18 Thread venkata reddy
I found that the validation error is coming for f.label as well. Why is this happening? if i remove f.label and put not text without using label tag, it is only coming once for text input. Anybody there... On Jan 12, 12:33 pm, venkata reddy wrote: > say for instance, >                        i h

Re: [Rails] Re: Find all association methods

2012-01-18 Thread Peter Vandenabeele
On Wed, Jan 18, 2012 at 5:49 AM, Kingston.s wrote: > On Jan 17, 7:08 pm, Peter Vandenabeele wrote: > > On Tue, Jan 17, 2012 at 7:41 AM, Kingston.s wrote: > > > Hi all, > > > > > I want to get all association methods in one single model > > > > > Any default method is provided by Active Reco

Re: [Rails] Cannot redirect to nil!

2012-01-18 Thread Colin Law
On 18 January 2012 04:54, muhammad singgih zulfikar ansori wrote: > I need some help please.. > when I created web application about books market, i create a cart and using > test the message error appear like this on rake test:functionals > >> LineItemsControllerTest >>      test_should_create_li

Re: [Rails] Re: Saving without callbacks in Rails 3

2012-01-18 Thread Colin Law
On 18 January 2012 04:42, Kingston.s wrote: > On Jan 17, 6:53 pm, Colin Law wrote: >> On 17 January 2012 11:22, Kingston.s wrote: >> >> > Hi all, >> >> > Saving without callbacks is not working in rails 3.1. >> >> Yes it is. >> I presume you mean that you cannot make it work.  Tell us what you >