[Rails] [JOBS] Senior Ruby Developers, London, UK - social enterprise - healthcare - zero corporate greed

2020-03-01 Thread Chris H
Great opportunity to join a team who are making a real difference to peoples lives. SH:24 is an innovative and multi-award winning health tech company, working in partnership with the NHS to deliver online sexual and reproductive services across the UK, 24:7. We are

[Rails] Re: adding a drop down menu to index view

2017-05-28 Thread Chris Lerum
try <%= f.collection_select( :artist, :genre_id, Genre.all, :id, :name) %> On Sunday, May 28, 2017 at 4:17:53 PM UTC-4, fugee ohu wrote: > > I wanna add a dropdown menu to my index view for the index action of my > artists_controller Trying to use collection_select but it responds undefined >

[Rails] has_secure_token rails5 for logging in a user.

2017-05-01 Thread Chris Vukin
Has anyone any thoughts on logging in a user to a rails app after the user logs in via the traditional form mechanism with devise? My current thought line: override devise sessions_controller with a custom method for using user.auth_token object to validate and login the given user if the

[Rails] form_for(@address) in form controller says undefined local variable 'address_params'

2017-04-03 Thread Chris Vukin
Being that you've got nested resources the form is looking for the @user info too, define the user in your address controller actions too and then pass it into your form like so: ([@user, @address]). That should get you on the right path. Try a Google of 'rails form_for nested resources' and

Re: [Rails] Saving a nested object to a whole collection of objects at once.

2016-10-18 Thread Chris Vukin
r 2016 at 14:27, Chris Vukin <medr...@gmail.com > > wrote: > >> thank you for your reply Colin, here's what we're trying to do: >> >> The app has a farm model and each farm has nested plant models, nested >> under each plant is a feeding model. Say a farm has 1

Re: [Rails] Saving a nested object to a whole collection of objects at once.

2016-10-18 Thread Chris Vukin
at 3:08:43 AM UTC-4, Colin Law wrote: > > On 18 October 2016 at 00:29, Chris Vukin <medr...@gmail.com > > wrote: > >> Hello, I'm wondering about how to accomplish saving the same nested form >> on an entire collection of objects that the form is nested under.. I'm not

Re: [Rails] associations - one to many

2016-10-18 Thread Chris Lerum
Your line: params.require(:product).permit(:title, :template, :price, :msrp, :enddate) needs to be: params.require(:product).permit(:title, :template, :price, :msrp, :enddate, :category_id) On Tuesday, October 4, 2016 at 3:15:26 PM UTC-4, Joe Guerra wrote: > > Still unsure of what to do... this

[Rails] Saving a nested object to a whole collection of objects at once.

2016-10-17 Thread Chris Vukin
Hello, I'm wondering about how to accomplish saving the same nested form on an entire collection of objects that the form is nested under.. I'm not finding much when googling around, is this something that is possible with rails? Thanks for any thoughts! -- You received this message because

[Rails] Re: Multiple file uploads?

2016-06-19 Thread Chris Vukin
Chris Oliver has a nice vid on this: https://gorails.com/episodes/file-uploads-with-refile Can you post any errors you are getting? I've also found Chris to be very responsive on his vids so you could also try posting a query to him on this vid comments section.. -- You received this message

[Rails] Re: Multiple file uploads?

2016-06-13 Thread Chris Vukin
There is also refile... https://github.com/refile/refile#multiple-file-uploads On Sunday, June 12, 2016 at 3:26:55 PM UTC-4, Ruby-Forum.com User wrote: > > Hi all, > > This is my first post, so I'll start by just saying hello, as I imagine > I will be spending a lot of time on this forum in

[Rails] Re: Validate behaving strangely in a nested form.

2016-05-21 Thread Chris Vukin
this looks like a very interesting project, I've been having some issues with assigning associations thru a form on an related type of app, getting a form that crates an polymorphic association when a provider creates an order and such. would you be up for an email chat on the topic by chance?

[Rails] Re: a new Rails tutorial / blog

2015-11-17 Thread Chris Vukin
Nice little run thru, thanks for posting. Is this something you plan on launching to production? How will you be handling security? Will patients be able to login and view their chart? I've been working on learning rails along with android dev for some medical projects, my background is in

[Rails] Re: Active Record has_one through

2015-11-05 Thread Chris Berry
Turns out the event table needed to have an artist_id column. I was attempting to use the join table without a reference to the artist table. I dont know if that was the fix, because i also wrote a function in the event model that used the artist_id to return artist data from the database.

[Rails] [Help] Need help with first_or_create. Never finds existing Record

2015-10-30 Thread Chris Maher
I have a problem with a form that either updates or creates depending on whether the "project" exists already. Im using the def create def create puts params.inspect @project = current_user.projects.where(id: params[:id]).first_or_create(project_params) puts params.inspect if

[Rails] Re: Login modal using default rails ajax request not working with subdomains

2015-10-20 Thread Chris Ward
Sorry to tell you, but this behavior is by design. You'll have to put it on the same subdomain as the accessed page or use a workaround like an API. This is actually a limitation of AJAX. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the

[Rails] Re: Ruby on rails -running server command

2015-10-15 Thread Chris Ward
I'm having trouble getting the server up as well. The install went fine, but it looks like something is blocking it from running on port 3000. I disabled the security software, but that had no effect. Something else here in Windows 10 is blocking it. C:\Dev\Ruby223\Proj\Test>gem list ***

[Rails] Rails isn't running on Windows

2015-10-15 Thread Chris Ward
My understanding is that this issue has been present in the last two stable releases of Ruby. I'd rather run Ruby and Rails on my Mac, but Apple's stupidity of forced upgrades of everything is an issue here. Older computers have hardware issues as you might imagine and you'd think that dropping

[Rails] Active Record has_one through

2015-10-07 Thread Chris Berry
I have two tables in my app which I am attempting to relate through a join table. The Artist class which uses 'has_many through', works as expected. However, the Event class using 'has_one through', brings back nil. class Artist < ActiveRecord::Base has_many :artist_events, dependent:

[Rails] Re: When to add multi tenancy ?

2015-05-17 Thread Chris Lerum
You seem to answer your own question: you already know it's an architectural requirement, so I'd suggest including it from the beginning. On Friday, May 15, 2015 at 3:50:15 PM UTC-4, Leandro França wrote: Hi there, I'm building a new app that will need to have multi tenancy features and

[Rails] Re: Ruby Developer Needed

2015-05-12 Thread Chris Lerum
I've some experience rescuing projects, perhaps I could be of help. chris.le...@gmail.com On Tuesday, May 12, 2015 at 12:21:08 PM UTC-4, Jon Capp wrote: Have a project that is already in use but needs a few things finished and ongoing support. We lost our developer to another project looking

[Rails] Re: Cloud9 not creating files and directories the rails command should create

2015-05-11 Thread Chris Lerum
You must either be in the wrong directory or it's a Cloud9 issue. If you go to terminal, are the files there? On Monday, May 11, 2015 at 8:15:15 AM UTC-4, Roman wrote: I'm sorry if the following question has been asked before but I wasn't able to find the answer. I've just started going

[Rails] Re: Jquery to center: Form with multiple hidden divs -- JS will size to the smallest div....

2015-05-06 Thread Chris Lerum
This isn't rails-related, but for centering/laying out things neatly, I'd suggest using something like Bootstrap and its grid system. On Tuesday, May 5, 2015 at 12:51:42 PM UTC-4, Elizabeth McGurty wrote: ...despite monitor On Tuesday, May 5, 2015 at 12:49:05 PM UTC-4, Elizabeth McGurty

Re: [Rails] Re: FactoryGirl - can't write unknown attribute, and undefined method `name'

2015-04-30 Thread chris lerum
UTC+3, Chris Lerum wrote: In short, yes. See this lovely article; notice the conspicuous absence of any talk of changing table names: http://blog.makandra.com/2014/12/organizing-large-rails-projects-with-namespaces/ On Wednesday, April 29, 2015 at 1:59:04 PM UTC-4, Rafael Adel wrote: I can

Re: [Rails] Re: FactoryGirl - can't write unknown attribute, and undefined method `name'

2015-04-30 Thread Chris Lerum
https://github.com/chrislerum/factory setting table_name seems to be the sweet spot, working now On Thursday, April 30, 2015 at 8:01:49 AM UTC-4, Chris Lerum wrote: you could try, in the model, self.table_name = seven_gallery_photos etc. On Thu, Apr 30, 2015 at 4:09 AM, Rafael Adel

[Rails] Re: I am creating a record in a table and after creation I want to create a record in another table

2015-04-30 Thread Chris Lerum
It's to your credit that you got that working, but it's far from conventional - why not post your attempt to get associations working, with your expected result vs. actual, and you'll soon be greeted with a nice 'AHA!' moment. I bet. On Thursday, April 30, 2015 at 10:18:28 AM UTC-4, Elizabeth

[Rails] Re: FactoryGirl - can't write unknown attribute, and undefined method `name'

2015-04-29 Thread Chris Lerum
https://github.com/chrislerum/factory I tried whipping up an app with your code, the controller test passes fine for me, see if it works for you and compare. On Wednesday, April 29, 2015 at 10:32:47 AM UTC-4, Rafael Adel wrote: I'm trying to create a `photo` factory that's in a many to one

[Rails] Re: Problem with validation

2015-04-29 Thread Chris Lerum
It may help if you showed us this code of which you speak. On Wednesday, April 29, 2015 at 10:52:06 AM UTC-4, Gm wrote: Hi, I'm using a custom validation method to validate some logic. But I realized that the database query is running two times. So the database is being called twice. The

[Rails] Re: FactoryGirl - can't write unknown attribute, and undefined method `name'

2015-04-29 Thread Chris Lerum
in front of the table names and FK. But in yours there's none since it's a normal app. But is this the cause ? On Wednesday, April 29, 2015 at 6:53:18 PM UTC+3, Chris Lerum wrote: https://github.com/chrislerum/factory I tried whipping up an app with your code, the controller test passes fine

[Rails] Re: FactoryGirl - can't write unknown attribute, and undefined method `name'

2015-04-29 Thread Chris Lerum
is that in my case there's namespace in front of the table names and FK. But in yours there's none since it's a normal app. But is this the cause ? On Wednesday, April 29, 2015 at 6:53:18 PM UTC+3, Chris Lerum wrote: https://github.com/chrislerum/factory I tried whipping up an app with your

[Rails] Re: There is a difference between rake and bundle exec rake and I need to understand it.

2015-01-06 Thread Chris Miller
. Thanks for the help, Chris. -- 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 post to this group, send email

[Rails] There is a difference between rake and bundle exec rake and I need to understand it.

2015-01-06 Thread Chris Miller
for the help, Chris. -- 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 post to this group, send email to rubyonrails

Re: [Rails] So close ... Static page is served

2015-01-05 Thread Chris Miller
my horoscope, but it is silent on the issue. (-: Thanks for the help, Chris. -- 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

[Rails] So close ... Static page is served

2015-01-04 Thread Chris Miller
. # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log' # require File.dirname(__FILE__) + /../config/environment require 'fcgi_handler' I have apparently not configured things quite properly. Any advice? Thanks for the help, Chris. -- You received this message because you are subscribed

[Rails] Displaying ruby code in a view

2014-11-04 Thread Chris Kacerguis
and just output it as text? I hope that makes sense. Thanks in advance for any advice / direction. Chris -- 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

[Rails] Job - London

2014-08-20 Thread Chris How
SH24 is a new, NHS backed start-up which hopes to revolutionise sexual health care in South East London by using telephone and internet technologies to deliver sexual health care remotely, 24 hours a day, seven days a week. We’re looking for a Ruby developer who can take responsibility for the

[Rails] Re: How install libv8 (therubyracer) Windows 7

2014-08-18 Thread chris
Hi all I'm still struggling with Windows 7, Ruby and shopify_app. I install shopify_app (gem install shopify_app) I create a project (rails new MetaManager) I edit the Gemfile to include shopify app (Add 'gem 'shopify_app' to Gemfile) I do a bundle install (bundle install) then generate (rails

[Rails] Dynamic Stylsheets

2014-07-15 Thread Chris Tonkinson
of the Asset Pipeline manual that I've missed which addresses this specific question? Cheers, -Chris -- Chris Tonkinson Forge Software ch...@forgecrafted.com 800.875.3048 x1 Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away. -Antoine de

Re: [Rails] Re: duplicate AR log messages when in console

2014-07-03 Thread Chris Tonkinson
Yes, I see one in cyan and another in magenta. Been happening for a while, but there was always some other problem snatching priority away from my investigation. On 07/03/2014 05:38 PM, S Ahmed wrote: does anyone else see duplicate log entries like this? I'm using rails 4.1.1 On Wed, Jul

[Rails] Re: Integers not being stored in PostgreSQL (9.3) array via simple form (Rails 4.1.1)

2014-07-01 Thread Chris Butcher
Fred, you did it! Thank you, had been stuck on this for days. -- 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: Integers not being stored in PostgreSQL (9.3) array via simple form (Rails 4.1.1)

2014-07-01 Thread Chris Butcher
Although, any help regarding validations would be much appreciated. I need the user's entered value for the impact and likelihood fields to be an integer between 0 and 100. What I would usually expect would work, something like: validates_inclusion_of :impact, :in = 0..100 doesn't. Validation

[Rails] Re: Integers not being stored in PostgreSQL (9.3) array via simple form (Rails 4.1.1)

2014-06-29 Thread Chris Butcher
forgive me if the answer to that is an obvious 'of course'. Thank you both for your help thus far. On Monday, June 23, 2014 10:12:04 PM UTC+1, Chris Butcher wrote: I am having a bad time trying to get some form parameters (via a simple form, latest version), stored in an integer array

[Rails] Re: Integers not being stored in PostgreSQL (9.3) array via simple form (Rails 4.1.1)

2014-06-29 Thread Chris Butcher
've just started working on this again after some time off. In response to Fred's suggestion regarding input names, I looked into it and found you can specify custom input names in simple form like this: span class=impact-input %= f.input :impact, required: false, :error = false,

[Rails] Re: Integers not being stored in PostgreSQL (9.3) array via simple form (Rails 4.1.1)

2014-06-29 Thread Chris Butcher
I've just started working on this again after some time off. In response to Fred's suggestion regarding input names, I looked into it and found you can specify custom input names in simple form like this: span class=impact-input %= f.input :impact, required: false, :error = false,

[Rails] Re: Integers not being stored in PostgreSQL (9.3) array via simple form (Rails 4.1.1)

2014-06-25 Thread Chris Butcher
casting etc. Does anyone know of a way I can get these params accepted as integers? The problem might lie in simple form after all. (Thanks for your help so far Frederick!) On Tuesday, June 24, 2014 9:56:45 AM UTC+1, Frederick Cheung wrote: On Monday, June 23, 2014 10:12:04 PM UTC+1, Chris Butcher

[Rails] Integers not being stored in PostgreSQL (9.3) array via simple form (Rails 4.1.1)

2014-06-24 Thread Chris Butcher
: true, using: :btree add_index users, [remember_token], name: index_users_on_remember_token, using: :btree end Any help much appreciated! If there is any extra information I can provide please let me know. Thanks v much, Chris -- You received this message because you are subscribed

[Rails] ActiveModel Serailizers, how can I load it and why do I need to?

2014-06-12 Thread Chris P.
Noobie here. The gist of my problem is this. If I move from serializer file from app/serializers/ to app/models/ then everything works fine. My JSON API will output my data according to my serializer. However, if I remove the copy from the app/models/ directory... it no longer works and goes back

[Rails] Re: Is it an ok practice to define a resource in your routes file multiple times? 3+ times?

2014-06-11 Thread Chris P.
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 rubyonrails-talk+unsubscr...@googlegroups.com. To post

[Rails] Re: Is it an ok practice to define a resource in your routes file multiple times? 3+ times?

2014-06-10 Thread Chris P.
mike2r wrote in post #1149390: IMO, it can be done either way. If you use routes, it would be a little cleaner when you are using the same resource more than once to make a concern: concern :commentable do resources :comments end resources :posts, concerns: [:commentable] resources

[Rails] How can I test my controller via rspec for something other than response.should be_success?

2014-06-09 Thread Chris P.
1) Right now this is just testing a successful response. However, since I've gone and created a Post via FactoryGirl... how can I test the @post.id equals one of the id's being returned by the get: index json? describe Api::V1::PostsController do context 'Post' do before(:each) do

[Rails] Is it an ok practice to define a resource in your routes file multiple times? 3+ times?

2014-06-09 Thread Chris P.
Noobie here. Let's say you have a Post, Comment, and User models. So Post has_many comments, and User has_many comments. If it good practice to do the following... resources :posts do resources :comments end resources :users do resources :comments end etc? I have a

Re: [Rails] Running Mac OS X guest OS in VirtualBox

2014-05-02 Thread Chris Tonkinson
just for the sake of development. Cheers! -Chris Chris Tonkinson Forge Software ch...@forgecrafted.com 800.875.3048 x1 signature.asc Description: OpenPGP digital signature

Re: [Rails] REST API routes configuation in rails

2014-04-17 Thread Chris Tonkinson
: :get '/users/new/:id/:name/:age' and the URL: localhost:3000/users/new/6235/david/12 Is that what you're looking for? Cheers, -Chris Chris Tonkinson Forge Software ch...@forgecrafted.com 800.875.3048 x1 signature.asc Description: OpenPGP digital signature

Re: [Rails] Re: rails 4 link_to post method

2014-04-06 Thread Chris Habgood
Thanks, here is the link generated, a data-method=post href=/list_items/136298/buy rel=nofollowBuy Now/a Routes: resources :users resources :list_items do post :buy, :on = :member end root 'list_items#index' ERB: %= link_to(Buy Now, buy_list_item_path(list_item), :method = 'post')

Re: [Rails] rails 4 link_to post method

2014-04-06 Thread Chris Habgood
jquery and jquery_ujs are loaded. it is a rails 4 app. On Sun, Apr 6, 2014 at 3:55 PM, Walter Lee Davis wa...@wdstudio.com wrote: On Apr 6, 2014, at 2:29 PM, Chris Habgood wrote: Thanks, here is the link generated, a data-method=post href=/list_items/136298/buy rel=nofollowBuy Now

Re: [Rails] Re: rails 4 link_to post method

2014-04-06 Thread Chris Habgood
The one I posted was a slightly different one but still gives me the same error. It does not seem to recognize the link is a 'POST even though the actual link on the page is a post. No route matches [GET] /list_items/136327/buy The action 'buy' is in the liat_items_controller. On Sun, Apr 6,

Re: [Rails] Re: rails 4 link_to post method

2014-03-29 Thread Chris Habgood
That is the only route for that controller. On Sat, Mar 29, 2014 at 12:33 PM, Loganathan Sellapa loganathan...@gmail.com wrote: Hi, Can you copy your full routes.rb, I believe you should place the route at before the route resources :payment Regards, Logan Sent from mobile device

[Rails] Rails Partial renders three times

2014-01-22 Thread Chris Kuffo
I have a weird situation. In my users controller I have an if else statement that renders a partial (i created for errors) based on if my sign up form passes validation. For instance if someone forgets to put in their name or enter an email address the message will appear at the top of the form.

[Rails] Re: rails server error (rails 3) in windows

2014-01-21 Thread Chris Cox
Hi Guys Struggled some time with this, but found the issue appears to be the line in the mysql2.rb file: require mysql/mysql Removing this works better however the server doesn't start normally. When I copied the mysql.rb file from the mysql folder to

[Rails] Re: rails server error (rails 3) in windows

2014-01-21 Thread Chris Cox
Further to the above I decided to start again with a clean install using railsinstaller. Went through similar issues but on renaming mysql2.rb and not having an old mysql.rb file in the path, I found it was erroring on line 72 of runtime.rb which when I commented out :

[Rails] Looking for Advice

2013-10-30 Thread Chris Clemens
Hey Guys, A group of guys and myself have been working on a project/business plan to develop a Hotel Concierge application for tablets. We have been working on it for over a year and have hotels here in Chicago that are on board and very interested with our concept. We also are in the works

[Rails] RVM Path issue when I run RVM -V

2013-09-16 Thread Chris Kuffo
Hello - Hoping someone can help with this issue. Everytime i run rvm -v i receive this error. Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, My

[Rails] Advice on building a Rails App

2013-09-11 Thread Chris Kuffo
Hello.. I'm hoping to get some advice on building a certain section of my prototype I am trying to build. What would recommendations would anybody have if I wanted to create a questionnaire that would create a set of folders based off of the answers in the questionnaire they filled out.. be

[Rails] Re: Advice on building a Rails App

2013-09-11 Thread Chris Kuffo
the tree view would be more for navigation purposes to a set of working files underneath the project directory. Example under project folder we would have a project summary page where a user can enter information related to the project. an example of what this would look like would be on the

[Rails] Re: Advice on building a Rails App

2013-09-11 Thread Chris Kuffo
Exactly.. not a real folders -- 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: Deploying Rails 4 to VPS

2013-09-02 Thread Chris Peterson
I haven't gotten this up and running yet. I got most of the dependencies installed but I'm trying to do more research on Nginx then get something deployed. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group

Re: [Rails] Deploying Rails 4 to VPS

2013-08-29 Thread Chris Peterson
Great info here thanks! On Wednesday, August 28, 2013 10:20:12 PM UTC-5, Dheeraj Kumar wrote: Of course! https://coderwall.com/p/yz8cha -- Dheeraj Kumar On Wednesday 28 August 2013 at 8:03 PM, Chris Peterson wrote: Hello! I now have a VPS and I've been playing with it a bit

[Rails] Deploying Rails 4 to VPS

2013-08-28 Thread Chris Peterson
Hello! I now have a VPS and I've been playing with it a bit. It is running Debian 7.0. I'm wondering how to set up my environment to deploy a Rails 4 app. I'd like to use Nginx with Passenger, Capistrano and RVM. Any good starting points? -- You received this message because you are

[Rails] Re: Laying out the flow of an application - where to start?

2013-07-19 Thread Chris Sciolla
@tamouse_m, thank for your insight. Those are great questions and I'll be sure to note them. So here are the best answers I have. In this particular situation, users are visiting static pages of information. There are no real dynamic tasks involved, just browsing pages and subpages. In this

[Rails] Re: Laying out the flow of an application - where to start?

2013-07-19 Thread chris sc
I guess I just need to wrap my head around associations. That's what I've been reading more about and it seems like it's taking me down the right path. What I'm still confused about, is how to separate the admin side from the user side. I know there are gems for this, but I want to understand the

[Rails] Laying out the flow of an application - where to start?

2013-07-18 Thread Chris Sciolla
I have a question regarding where to start with a particular app I'm building. Hoping someone can set me on the right path. The scenario is pretty straight forward. This is the hierarchy of info: States Towns Each state has many Towns Each town has the following pages associated with it.

[Rails] Laying out the flow of an application - where to start?

2013-07-17 Thread Chris Sciolla
Hi all, first post! I have a question regarding where to start with a particular app I'm building. Hoping someone can set me on the right path. The scenario is pretty straight forward. This is the hierarchy of info: States Towns Each state has many Towns Each town has the following pages

[Rails] Re: Escaping colons in YAML

2013-01-28 Thread Chris v.
In my perl code I found that a double-qouted string may not contain a colon, but in a single quoted string it works without using any escape. Success. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] f.send in form?

2012-07-30 Thread Chris Habgood
Is there something I need to do to the data_type to make it recognize it as a method? wrong number of arguments (3 for 0) div class=control-group 48: %= f.label question.name.to_sym, :class = 'control-label' % 49: div class=controls 50: %= question.data_type

Re: [Rails] Re: ActionView::Template::Error (comparison of Fixnum with nil failed):

2012-07-29 Thread Chris Whitman
Caused by the cart (or order, maybe) looking for some data that is not there, probably. It can be avoided by using another user. Or maybe also by clearing that users cart. What I can say for sure is this: it is user/order/cart[line item] related and it's not just happening in this one case.

[Rails] Re: does it really achieve the productivity advantages it claims?

2012-05-09 Thread chris luger
what do you think??? :) -- 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, send email to

[Rails] Re: simple noob question about routes

2012-05-08 Thread Chris Allport
Run rake routes from the command line to see what the system expects. Depending on the results from rake routes, you probably need to change your link to call the path method differently. Maybe you need to call it passing in @team.id, or maybe the method should have a different name. On May 8,

[Rails] does it really achieve the productivity advantages it claims?

2012-05-08 Thread chris luger
Does it really achieve the productivity advantages it claims? -- 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

[Rails] Complex sorting question, or not?

2012-05-07 Thread Chris Klimek
I have a function that displays all depts and related info from other tables in my Department model, such as: def dept_and_hospital #{name} (#{floor.building.hospital.name}) end ... which is used in my view, like: p %= f.label :department_id %br / %= collection_select(:device,

Re: [Rails] Is my developer dodgy?

2012-04-27 Thread Chris Morris
to everything they've built for you so far and look elsewhere. -- Chris http://livingsocial.com | http://clabs.org -- 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

Re: [Rails] ActiveRecord scope with advanced condition

2012-04-09 Thread Chris Morris
Maybe this is the sort of thing you're looking for? http://guides.rubyonrails.org/association_basics.html#self-joins -- Chris http://livingsocial.com | http://clabs.org -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Sub Directories in the Assets Folder

2012-03-25 Thread Chris Hickman
files - related to the root directory of the application? Not sure the best way to do this. The assets thing doesn't seem to be helping me here... or maybe I just don't understand it fully... Any pointers would be appreciated. Thanks in advance, Chris -- Posted via http://www.ruby-forum.com

[Rails] Re: Sub Directories in the Assets Folder

2012-03-25 Thread Chris Hickman
Just keeping using the public folder for things like this? Is this bad? -- 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

[Rails] Does omniauth act as provider

2012-03-20 Thread Chris
Hi There, I got this Problem: OAuthProvider - Rails WebApp - iOS App With omniauth the part between OAuthProvider and Rails WebApp seems to be really easy. But how about authentication for the iOS App. Is there a way to pass through authentication so that I could authenticate the iOS App via

Re: [Rails] send_data always sends xml file?

2012-03-15 Thread Chris Morris
Mac thinks it's an xml file. - Does the file end up with an .xml extension in your Downloads dir? and/or when you try to open it some program registered to .xml extension opens it or what? Which browser and what do you see in the Response headers? All browsers do the same thing? -- Chris http

Re: [Rails] dhtmlx grid excel using ror 3

2012-03-15 Thread Chris Morris
Doc approaches. Search to_xls and you should find a few different options. -- Chris http://livingsocial.com | http://clabs.org -- 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

Re: [Rails] Ruby Daemons using DRb ?

2012-03-15 Thread Chris Morris
at play and isn't 'hiring to the tool' then your experience with DRb should be great. -- Chris http://livingsocial.com | http://clabs.org -- 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

[Rails] Rails 3: Route all POST to :update method for a specific namespace

2012-02-05 Thread Chris
Against the background of the PUT/PATCH/POST partial update discussion ( https://github.com/rails/rails/pull/505 ): Actually I want to use the PATCH method in Rails but it is not yet implemented. So can I define (for a whole namespace) that THIS is standard behavior: POST resource/:id =

[Rails] [JOBS] RoR Perm and Contract/hire jobs in Atlanta

2012-01-27 Thread Recruiter Chris
positions are available. This company will eventually be spun off by this large Atlanta company that is starting it and an equity piece could be a part of the compensation. Contact me for more details… Chris Coffee CHOICE TECHNOLOGY GROUP, INC. Mobile: 404.seven two nine.6662 (to avoid spiders

[Rails] rails:freeze:gems missing

2012-01-20 Thread Chris G.
I am trying to freeze gems I get: rake rails:freeze:gems rake aborted! Don't know how to build task 'rails:freeze:gems' (See full trace by running task with --trace) I also cant find rails:freeze:gems when i do rake -T I am new to Ruby so I am not sure where to begin. Any suggestions? --

[Rails] seed data in fixtures ?

2011-12-26 Thread Chris Downey
Does anybody know of a way to populate fixtures with seed data? I've put a great deal of time and thought into the seeds.rb code - it sure would be handy to run tests on that data. I'm hoping to not have to somehow duplicate seed data in the YML files. thanks! -- You received this message

[Rails] fixtures and validation

2011-12-19 Thread Chris Downey
for this, but I've been digging around for hours and can't find any explanation. Thanks! Chris -- 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

Re: [Rails] fixtures and validation

2011-12-19 Thread Chris Downey
to build good software. With that in mind, I was hoping to learn the reasons behind why fixtures work the way they do. Thanks again for your response. Chris On Mon, Dec 19, 2011 at 5:55 AM, Colin Law clan...@googlemail.com wrote: On 19 December 2011 02:47, Chris Downey cdow...@gmail.com wrote

[Rails] Rails Server unable to run commands as daemon

2011-11-04 Thread Chris Hughes
I am running rails server as a daemon on ubuntu server. My controller uses `#{command}` to run a python image processor and return the output. After several requests and hours of uptime the server stops working when it hits this command, stating that it got no output. But the command runs fine on

[Rails] Beginner: has_many relationship Active Record Associations

2011-10-18 Thread Chris
ActiveRecord::Base end But the meal_id is saved at the Side - so a side will only belong to the last associated Meal - am I right? Thanks allot for your help Chris -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group

[Rails] Re: Ruby On Rails Developer - West Chester, PA

2011-10-17 Thread Chris C.
Jason, Are you still local to west chester pa? I may have a project for you. Chris Cotter cot...@tribesound.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

[Rails] ActiveRecord Integer Saving Problem

2011-10-12 Thread Chris N
, Chris -- 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, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit

Re: [Rails] database save files

2011-10-03 Thread Chris Kottom
How to save a text file to database by mysql. If you've already got the information as a file and you're going to need it as a file in the future, then you should just store it as a file for later use. There are a lot of gems that can help you with this sort of thing. See:

Re: [Rails] check_box not passing 0 when unchecked?

2011-09-13 Thread Chris Mear
the problem in Firefox 6.0.1, so maybe it's an old bug or maybe I'm misremembering things. Joan, are you testing in Firefox by any chance? Chris -- 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

[Rails] Re: Problems with Rails server/mysql2 gem

2011-09-08 Thread Chris Duff
Awesome, I suspected the mysql2 version was causing problems. Where can I get the 0.2.11 version of mysql2 from? -- 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

Re: [Rails] Good rails 3.1 book

2011-09-07 Thread Chris Mear
believe they have produced a new printing of the physical dead-tree version yet, so if you buy that then you'll have a book that covers Rails 3.0. Chris -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

  1   2   3   4   5   6   7   8   9   >