Re: [Rails] auction site listings table

2019-09-17 Thread Andrew Cranston
Agreed - relational tables are the way to go here. Only one suggestion I'd make is around semantics, I'd rename auctions to auction_items, and then the join table would need to be auction_item_properties. I may be misunderstanding, but my thinking is an auction to be the top-level bucket which

[Rails] Rails 5.0.7 and 5.1.6 have been released

2018-03-29 Thread 'Andrew White' via Ruby on Rails: Talk
Hi everyone, I am happy to announce that Rails 5.0.7 and 5.1.6 have been released. ## CHANGES since 5.0.6 To view the changes for each gem, please read the changelogs on GitHub: * [Action Cable CHANGELOG]( https://github.com/rails/rails/blob/v5.0.7/actioncable/CHANGELOG.md) * [Action Mailer CH

[Rails] Re: Contract Work for Ruby on Rails Developer

2017-05-12 Thread Andrew Ogienko
Hello, Falk If you still need help, please contact me. I have a great team of Ruby developers. Thank you Andrew and...@codica.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 receiv

[Rails] Re: [JOBS] MUSIC LOVER - Experienced Ruby on Rails developer

2017-05-12 Thread Andrew Ogienko
Hello Benjamin I have a great team of Ruby developers based in Ukraine. Please, contact me for the details > Are you a music lover? We are Plugify. A team of music loving > revolutionaries on a mission: to disrupt the live music booking industry. > Come and Join us! check out the position:

[Rails] Re: ActionMailer ActiveJobs and register_interceptor/register_observer

2017-02-11 Thread Andrew Kaspick
Turns out I had a bug in my code and the observers and interceptors do in fact work correctly. On Saturday, February 11, 2017 at 3:04:54 AM UTC-5, Andrew Kaspick wrote: > > Hi, > > I'm using delayed job to send emails (via ActionMailer) as a background > job, but I also

[Rails] ActionMailer ActiveJobs and register_interceptor/register_observer

2017-02-11 Thread Andrew Kaspick
Hi, I'm using delayed job to send emails (via ActionMailer) as a background job, but I also have an interceptor registered via http://api.rubyonrails.org/classes/ActionMailer/Base.html#method-c-register_interceptor and an observer registered via http://api.rubyonrails.org/classes/ActionMailer

[Rails] Nested attributes issue

2016-07-25 Thread Andrew Dig
Hi everyone. I faced with such problem: My model Order accepts nested attributes for model Address. It belongs to Address model and has shipping and billing address. I use nested forms to update or create addresses and everything is fine but I need to make an ability to mark checkobox 'use billing

[Rails] Re: Re: problems with ajax form

2016-02-25 Thread Andrew Dig
Colin Law wrote in post #1181667: > On 25 February 2016 at 21:03, Andrew Dig wrote: >> already checked. nothing written in the log > > When replying please quote the previous message, this is is a mailing > list not a forum (though you may be using it via a forum like > inte

[Rails] Re: problems with ajax form

2016-02-25 Thread Andrew Dig
already checked. nothing written in the log -- 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+u

[Rails] problems with ajax form

2016-02-25 Thread Andrew Dig
Hi everyone! A few days I can't resolve a task. I want to build a single page app without any page refresh. So I have a button 'Add', onclick it inserts in a DOM a simple remote:true form and when I try to submit this form - nothing happens BUT if i refresh the page - it works. Guess some handler i

[Rails] Re: Issue with routing

2016-02-23 Thread Andrew Dig
I fixed thks for help!!!appreciated -- 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.

[Rails] Re: Issue with routing

2016-02-23 Thread Andrew Dig
Thx very much. I tried to use method: post but couldn't figure out how to do that properly(I mean syntax).So how it should be correctly?! <%= link_to { delete_path(type:'project',id: project.id),remote: true, method: post},{class: 'glyphicon glyphicon-trash',data:{project_id: project.id} do }%>

[Rails] Issue with routing

2016-02-22 Thread Andrew Dig
Hi everyone. I'm newbe in ROR and recently faced with a routing problem. Here's my route: post ':type/delete/:id' => 'todolist#delete_item', as: 'delete', constraints: {type: 'project|task'} my link: <%= link_to '', delete_path(type:'project',id: project.id),{class: 'glyphicon glyphicon-trash'

[Rails] Re: problem with mass asignment

2016-01-26 Thread Andrew Dig
Thank you very much. Now it is clear -- 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

[Rails] Re: problem with mass asignment

2016-01-26 Thread Andrew Dig
Colin Law wrote in post #1180931: > On 26 January 2016 at 20:20, Andrew Dig wrote: >> Hi everyone. I'm new in ruby and recently faced with mass assignment >> problem. Below I attached a sample code similar to mine. Could you >> explain me what should I use in require

[Rails] problem with mass asignment

2016-01-26 Thread Andrew Dig
Hi everyone. I'm new in ruby and recently faced with mass assignment problem. Below I attached a sample code similar to mine. Could you explain me what should I use in require method??? is it a name of model(person) or a variable name which I assign result(person = current_account.people.find(param

[Rails] Which time zones make the list in ActiveSupport::TimeZone?

2015-09-02 Thread Andrew Goodnough
The documentation for ActiveSupport::TimeZone says one of the goals for the class is to "Limit the set of zones provided by TZInfo to a meaningful subset of 146 zones." Is there a canonical reference for these 146? It seems to me you'd want all the Time Zones defined by the TZInfo gem which in

[Rails] 3scale is hiring Senior Rails developers for our Barcelona office

2015-08-28 Thread Andrew Mackenzie
We are hiring developers for 3scale's Engineering team in Barcelona. We are currently focussing on Senior engineers with extensive Rails experience, but are also interested in applicants with less experience. If you have any doubts or questions, just ping me directly on andrew at 3scale.net

[Rails] Re: Capistrano deploy:assets:backup_manifest

2015-07-24 Thread Andrew Schutt
Looks like the version of ruby that is expected isn't installed (1.9.3-p484)? Does the user that you are using to deploy (looks like deployer) have the correct access and permissions to the destination for your deployment? The user used for the deployment is the one that needs access to the c

[Rails] Re: Best practices with migrations in production deployments

2015-07-24 Thread Andrew Schutt
Came here to recommend using Capistrano as well. I second what tamouse recommended. Capistrano can automate the running of the migrations as you do deployments to different environments. Check it out http://capistranorb.com/ On Thursday, July 23, 2015 at 7:44:41 AM UTC-5, Rafa F wrote: >

[Rails] (Jobs) Technology Lead, Ruby: SchoolGuide.co.uk | Bath, UK | £50 – £70k | equity | flexible working

2014-12-11 Thread andrew
0,000 - £70,000 joining salary. Home working and flexible hours are sustainable too. We'd be glad to tell you more, and we'd welcome your feedback and questions. Thanks! Andrew Andrew Gifford, Founder techfolk Ltd. 0117 318 2447 | he...@techfolk.co.uk | @we_are_techfolk 96 Belmont Road, B

[Rails] [JOBS] Developer to Assist Non-Profit Media Arts Society

2014-12-11 Thread Andrew Scholotiuk
, however I doubt we would be able to pay full rates. But hopefully we'd be looking for someone that would be interested in working with us for a good cause. Many Thanks, Andrew Director of Production FAVA product...@fava.ca -- You received this message because you are subscribed t

[Rails] [JOBS] SchoolGuide.co.uk: hiring Lead Ruby Developer | Bath, UK | relocation offered

2014-11-28 Thread andrew
d we'd be glad to tell you more. Questions and applications should be directed to us please - Victoria and Dan are really busy! Thanks, Andrew Andrew Gifford, Founding Director techfolk Ltd. Tel: 07710 794225 | 0117 318 2447 and...@techfolk.co.uk | http://www.techfolk.co.uk |htt

[Rails] Re: Refill a form when invalid data is submitted

2014-11-12 Thread Andrew Gimma
I don't know why people are generally so unhelpful on these message boards. I've been a professional programmer for years, and I've seen so many people turned away because people just say "go read an entire book for this one simple problem" rather than helping new users along. Anyway, this ques

[Rails] Re: Hello Please let me know if anyone is looking out for a job as Ruby on Rails Developer in MN.

2014-09-19 Thread Andrew Babkin
Hi Amit, Would you consider an option if we help you with your project as a team? We have extensive expertise in Ruby on Rails, as well as experience in utilizing Heroku, Rake, Cucumber, Git, Passenger, Unicorn, Bundler, RSpec, Capistrano, and other tools to accelerate RoR development. We have 70

[Rails] creating an OrderedHash

2014-09-01 Thread Andrew Brown
I'm a little confused about how one is supposed to create an ordered hash. As far as I can tell, ActiveSupport::OrderedHash does not provide a constructor or a method that can create a hash from an array of pairs. Is this a deliberate ommission? Hash also doesn't provide this, although later

[Rails] Active Job Backport

2014-09-01 Thread Andrew Kane
Hey, Any plans to backport Active Job to earlier versions of Rails? This would be super useful for external gems. If not, I'll take a stab at it. Thanks, Andrew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To u

[Rails] Backup as a Service for Rails

2014-08-06 Thread Andrew Shaydurov
Hi. I'm glad to finally announce new service useful for all Rails developers. It gives a simple solution for making backups for Rails applications. Main features are: - Simple installation and configuration in just 3 minutes (no more Backup gem configs with dozens of lines of code) - Compression a

[Rails] Group_by for inbox

2014-03-04 Thread Andrew Kelley
How an I make the code below only show "no new messages" once rather than multiple times when there are multiple tickets? %tbody - @users_tickets.each do |t| - unless t.ticket_replies.empty? %tr %td= t.business.name %td= link_to "#{t.c

[Rails] Re: Using Polymer Web Components and Rails

2014-03-01 Thread Andrew Huth
Yeah, I've been looking at the sprockets source. I need to come up with a way of creating a new type of manifest file to load the web components. Just like we specify javascript in application.js with `//= require "whatever`, I need an application.html with `. Then sprockets needs to create an

[Rails] Using Polymer Web Components and Rails

2014-02-27 Thread Andrew Huth
I'm trying to come up with a way to use polymer with Rails, but there isn't much out there on the subject. My thoughts are to handle web components like Javascript or CSS in rails. There will be an 'app/assets/elements/application.html' which defines what elements you want to be included. Then

Re: [Rails] How to present Rails form datetime select in different time zone?

2013-08-22 Thread Andrew Havens
I found a way to do it. To convert the multi-parameter attributes that are submitted in the form to a specific time zone, add a method in your controller to manually convert the params into a datetime object. I chose to add this to the controller because I did not want to affect the model behav

[Rails] How to present Rails form datetime select in different time zone?

2013-08-22 Thread Andrew Havens
only these fields so that it is localized to the user (but still store the correct UTC time). How can I make this change? Thanks for your help! --Andrew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this

[Rails] Re: Normalize dates taht are entered in more then one way.

2013-07-19 Thread Andrew Vit
ect input that will be ambiguous. I'm not sure how you want to resolve that, unless you give your users "region" preferences, so they can select the format they prefer to use. (You need to know what "1-2-2000" means: can you just decide if it's MDY or DMY?) Andrew

[Rails] Creating a nested attributes form for polymorphic/single table inheritance associations

2013-07-01 Thread Andrew Havens
I am working on a form (using SimpleForm) that allows you to edit embedded associations. The problem that I'm running into is that the nested models are subclasses so they are different types with potentially different fields. I'm creating hidden forms for each type of model, and using JavaScri

[Rails] Re: PDF generation with gif and tiff images

2013-07-01 Thread Andrew R.
to generate pdf files , you can try more generator softwares, i can share with you the pdf generator i am using currently and you can have a try. http://www.rasteredge.com/how-to/csharp-imaging/pdf-creating/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you ar

[Rails] Re: Version issue with First App in Hartl Tutorial

2013-06-08 Thread Andrew Cheong
I don't know why this works, but I found it on Stack Overflow and it worked for me. (I'm going through Hartl's second edition.) Run this first (it installs the gem separately): gem install jquery-rails And then try bundle install again. -- Posted via http://www.ruby-forum.com/. -- You recei

[Rails] Error in rubyracer installation

2013-05-12 Thread Andrew Tristan
My OS : Windows 7. I am actually working with my friends with Github, but 2 days before ,one of my friend has inputed Therubyracer and pushed it to Github. After that i was trying to run the program as normally and then i inputed for the first step in Gitbash : 1. Find my project directory (cd

[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

[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

[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] Reload controller class with caching callbacks

2012-11-27 Thread Andrew Vit
I'm trying to write an RSpec helper for testing cached actions: https://github.com/avit/rspec-rails-caching/ How it works is visible in lib/rspec-rails-caching.rb, but to outline the setup process: 1. Define the global RAILS_CACHE constant (i.e. Rails.cache) to a CacheStore object that handles

[Rails] Route filtered by method returns 404

2012-10-24 Thread Andrew Gregory
thods implemented for the matching URL). Is this a known problem? Should I report it as a bug? Cheers, Andrew -- 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.

[Rails] Re: Parsing data and create records when app starts

2012-09-01 Thread Andrew Zed
Hmm, I think I get it. Thanks. And now it works just as I planned. -- 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 uns

[Rails] Parsing data and create record when app starts

2012-09-01 Thread Andrew Zed
Hello, I'm a newbie and would be appreciated for any help. So that's the situation: I try to build a simple rails app which will give users an opportunity to manage a list of some product. But except creating by user, some products list should be loaded into the view when app starts. This list is

Re: [Rails] Re: How can I copy records from one table to another?

2012-08-14 Thread Andrew Vit
acts_as_paranoid simply adds a deleted_at flag, it doesn't move records to a separate table. Something like acts_as_archive is a better equivalent. Andrew Vit On Tuesday, August 14, 2012 12:15:01 AM UTC-7, Michael Pavling wrote: > > > On 14 Aug 2012 04:38, "Zero

[Rails] Re: Rails authorization system

2012-08-14 Thread Andrew Vit
t. Also for security, you are covered by more eyes on the code. Andrew Vit On Monday, August 13, 2012 8:01:25 PM UTC-7, Ruby-Forum.com User wrote: > > This is more just a question of concepts. I have read extensively in > ruby and although many question are still itchy, I am wondering

[Rails] Rails console eats my query trace

2012-08-11 Thread Andrew Vit
hub.com/1942451 This should set up a log subscriber attached to ActiveRecord. However, the sql method in there never gets called. I'm not really sure what's happening. Has anyone had success or problems with this? Thanks, Andrew Vit -- You received this message because you are subscr

[Rails] Re: Rails associations

2012-08-05 Thread Andrew Vit
It sounds like you're running up against database foreign key constraints: your model needs to have those id attributes filled in before you can save it. (This is often caught with validations at the rails application layer too, with `validates :vehicle_type, presence: true`) This is one possib

[Rails] Re: before_validation an before_validation_on_create

2012-08-05 Thread Andrew Vit
Yes, exactly. before_validation happens before every validation. That means: model.valid? model.save model.create before_validation_on_create only happens when saving a new record. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post

[Rails] NewGem: flagpole_sitta

2012-07-21 Thread Andrew Rove
I have created a new caching gem and am looking for feed back. This is my first gem so any feedback would be great. Also test cases are being built now. Flagpole Sitta is a gem thats main purpose is to make it easier to effectively fragment cache in dynamic fashions in Rails. When ever

[Rails] Re: edit a collection item in _form for the parent

2012-07-01 Thread Andrew Ferk
S, You should not have to do any manual association. If you have params[:dog][:leg_ids] = [...], it should work; you may need to set attr_accessible :leg_ids in your Dog model. Show your solution, and maybe we can refactor it to use less code. -- Andrew Ferk On Sunday, July 1, 2012 10:39:14

[Rails] Re: edit a collection item in _form for the parent

2012-07-01 Thread Andrew Ferk
S, You should not have to do any manual association. If you have params[:dog][:leg_ids] = [...], it should work; you may need to set attr_accessible :leg_ids in your Dog model. Show your solution, and maybe we can refactor it to use less code. -- Andrew Ferk On Sunday, July 1, 2012 10:39:14

[Rails] Re: edit a collection item in _form for the parent

2012-07-01 Thread Andrew Ferk
;Leg #{i+1}" %>: <%= select_tag 'dog[leg_ids][]', options_from_collection_for_select(@legs, 'id', 'description'), :id => "dog_leg_#{i}" %> <% end %> <%= f.submit %> <% end %> Note that you will have issues if you choose the same leg for

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

2012-06-24 Thread Andrew Meyer
The problem is that less doesn't officially depend on therubyracer. It installs just fine, but when you try to run 'rails server' afterwards it crashes, claiming that you need to install therubyracer. (It does do this on less 2.2.1) On Thursday, June 21, 2012 6:37:34 PM UTC-5, Luis Lavena wrote

[Rails] Re: How do I sort my columns inside my AJAX search result?

2012-06-24 Thread Anders Andrew
Anders Andrew wrote in post #1065829: > Radhames Brito wrote in post #1065828: >>> >> if @search is not an ActiveRecord::Relation object you cant chain it >> with >> another ActiveRecord::Relation object. What class does the search >> function >> returns

[Rails] Re: How do I sort my columns inside my AJAX search result?

2012-06-24 Thread Anders Andrew
Radhames Brito wrote in post #1065828: >> > if @search is not an ActiveRecord::Relation object you cant chain it > with > another ActiveRecord::Relation object. What class does the search > function > returns? are you using a gem? the search function could be returning an > array in which case you

[Rails] How do I sort my columns inside my AJAX search result?

2012-06-24 Thread Anders Andrew
I have just converted into sunspot but am having problems geting my sorting of columns to work in the controller. My old controller action looked like this: def index @user = current_user @products = @user.products.search(params[:search]).order(sort_column + ' ' + sort_direction) end However

[Rails] Re: A simple csv import function to my Rails application

2012-06-09 Thread Anders Andrew
Colin Law wrote in post #1063851: > On 9 June 2012 16:42, Anders Andrew wrote: >> I am quite new to Rails, so nothing fancy. Preferably some basic code in >> View, Controller and Model. >> >> My sqlite3 database has a table that contains the corresponding columns. >

[Rails] A simple csv import function to my Rails application

2012-06-09 Thread Anders Andrew
le be (First_name;Last_name;Age;State): Andrew;McDonald;78;California I am quite new to Rails, so nothing fancy. Preferably some basic code in View, Controller and Model. My sqlite3 database has a table that contains the corresponding columns. -- Posted via http://www.ruby-forum.com/. --

[Rails] does expires_in store data in server cache or is it client only?

2012-06-08 Thread Andrew Roth
Hi, I'm having an issue with expires_in. From the docs (http://apidock.com/rails/ActionController/ConditionalGet/expires_in) it looks like it should only set a header. However, with a simple test application I can see it storing data to cache. class HomeController < ApplicationController de

[Rails] Embedding a controller view within another controller view (along with embedded js files)

2012-04-19 Thread Andrew
In my rails app I have a controller view, users#show. I'd like to render a different controller view either as an iframe or as a partial within users#show. Let's say it is pages#somepage (the controller simply returns an html view, no other processing or actions are performed). However inside o

[Rails] Re: Conditional execution of javascript / embedding Cappuccino files into Rails

2012-02-28 Thread Andrew
I fixed the issue, it turns out that putting everything in a directory inside Public was messing it up. Once I changed my references to account for that, everything worked. On Feb 28, 11:35 am, Andrew wrote: > I have a Cappuccino app that I am integrating with a Rails backend. A > key feat

[Rails] Conditional execution of javascript / embedding Cappuccino files into Rails

2012-02-28 Thread Andrew
I have a Cappuccino app that I am integrating with a Rails backend. A key feature of the app is authentication which is managed entirely by rails. The way I set it up is that the cappuccino js conditionally executes if the user is logged in, like this: <% if signed_in? %> document.write("Hello

[Rails] Re: displaying rails form validation errors inline

2012-02-26 Thread Andrew Drummond
venkata reddy wrote in post #1041460: > 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... I'm having the same exact issue as well so i

[Rails] Experiences using Database.com with Ruby on Rails

2012-02-13 Thread Andrew
hoping to get some candid feedback from any Ruby developers who have used this before. Do you think it's worth it to switch from using a "standard" database (i.e. MySQL, Postgres, MongoDB). Thanks, Andrew -- You received this message because you are subscribed to the Google Groups &q

[Rails] Re: Lots of embedded ruby / database queries on a page

2011-11-25 Thread Andrew Brown
(until the row changed) but it would be rendered differently depending on various conditions. Can Rails' caching accomplish something like this? On Nov 25, 10:57 am, "Jeffrey L. Taylor" wrote: > Quoting Andrew Brown : > > > I have a few questions about how well

[Rails] Lots of embedded ruby / database queries on a page

2011-11-25 Thread Andrew Brown
I have a few questions about how well RoR performs under various 'irregular' circumstances. First, how quickly does rails work when there are potentially lots of embedded ruby expressions (hundreds) per page? Also, how well does ruby do when there are perhaps hundreds of database reads per page?

Re: [Rails] Ruby adoption statistics

2011-10-10 Thread Andrew
Thanks everyone for the comments! The Tiobe Ruby chart is in fact the one that my co-worker was referring to since it shows Ruby on a downward slope. The Tiobe index doesn't seem very useful or accurate if you ask me. You've definitely given me a lot of ammunition to defend Ruby! -- You receiv

[Rails] Ruby adoption statistics

2011-10-07 Thread Andrew
is. I only have my experience and love of the language to base my opinions on. Do you know where I can find articles/statistics on Ruby adoption and how I can convince my co-worker(s) that Ruby is the way to go? Thanks, Andrew -- You received this message because you are subscribed to the Goog

[Rails] Re: how do I install git on OSX 10.6.8?

2011-09-20 Thread Andrew
Yeah, I would recommend using Homebrew to install Git. It was super easy for me. brew install git I didn't need to choose which version to download because it figured that out for me. Once you start using Homebrew, you'll want to start using it to install everything. =] -- You received this m

[Rails] Re: Creating a related object before validation

2011-08-28 Thread Andrew DiMichele
I'm assuming you don't want to create a Person if your User validations fail and vice versa. One way to do it is as follows. This will validate your Person during the validation phase for User, and if all is good save your Person then save User. Note that this doesn't preclude any database constrai

[Rails] Re: How to create a custom time select form element?

2011-08-13 Thread Andrew
I could easily write the HTML to create a few select elements, however, it's the Ruby part that I am not as familiar with. Could you provide an example of what the controller code (or model, helper, etc) would look like to convert the 3 fields into a valid time value ready to store in a database

[Rails] How to create a custom time select form element?

2011-08-13 Thread Andrew
tandard in Rails. Has this been done before? Is there a plugin or gem that I can install? If not, how can I create this from scratch? Thanks, Andrew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on

[Rails] Unexpected Results Testing validates :presence => true

2011-08-08 Thread Andrew Ferk
When the below test is executed it fails on the last assert with <1> expected but was <0>. How was save unsuccessful, but the count of the associations afterward 0? Thanks. # app/model/user.rb class User < ActiveRecord::Base devise :database_authenticatable, :recoverable, :rememberable, :tracka

[Rails] Re: Character encode

2011-07-31 Thread Andrew Skegg
Alcelyo Roberto writes: > > > Good evening guys,I'm using now with 3 rails web app themes rails to generate the layouts, almosteverything working ok, only the names I write code in such a ride when I put atable in the header with character "ç" character shows the strange but data thatcomes f

[Rails] Re: Ang.: Re: Add virtual attribute

2011-07-31 Thread Andrew Skegg
Linus Pettersson writes: > So I can use the List.unfinished But how do I add it as attributes to the json output? > > > Seems you are confusing search patterns with object output. Your JSON output should already include a "status" field. -- You received this message because you are

[Rails] Re: Printing nested data to screen

2011-07-28 Thread Andrew Skegg
Barney writes: > > And a relevant section of index.html.erb is: > <%= @people.each do |person| %> > > ... > <%= person.zip_code %> > <%= person.skill_set %> > <%= WHAT GOES HERE TO BE ABLE TO PRINT THE "position" FIELD OF > THE employee_infos TABLE? WHAT CHANGES SHOULD BE MADE TO

[Rails] Re: Passing blocks through render('partialname')

2011-07-28 Thread Andrew Skegg
Brent writes: > > How can I capture the block that I pass through a partial. I want to > be able to do something like: > > <%= render 'shared/partialname' do %> > Misc code / text > <% end %> > > Then I want to display that block at a specific place in that partial. > I could do this if I cr

[Rails] Re: Rails Organization

2011-07-26 Thread Andrew Skegg
Larry H. writes: > > I'm just starting so forgive me for beginner questions... > When you have a team of programmers developing something in RoR, how is > the s/w organized? Is there a common class library? Before writing > something new do the programmers consult what already exists? Can you

[Rails] Re: The performance&memory footprint of Rails3

2011-07-26 Thread Andrew Skegg
hideto writes: > > I just upgraded my application infrastructure to Rails 3.0.7 from > Rails 1.2.3. > Wow. A lot has changed since then, including the choice of web server configurations. You might want to explore Passenger, thin, or unicorn. There arew also many new features within Rails

[Rails] Re: Printing nested data to screen

2011-07-21 Thread Andrew Skegg
Barney writes: > > The people_controller.rb#edit, which doesn't work, is: > > def edit > @person = Person.find(params[:id]) > > @people_skills = PeopleSkill.all > > @people_skill = PeopleSkill.select('skill').where("{person_id => > @person.id}") > > respond_to do |format| >

[Rails] Re: Printing nested data to screen

2011-07-19 Thread Andrew Skegg
Barney writes: > > Thanks Andrew, but I couldn't make the 'find' work on the > 'PeopleSkill.where...' line. When I used 'find' on the @people_skill > line it came very close (since in the controller, listed above, > people_skill was a

[Rails] Re: Difficulty figuring out this model association..

2011-07-18 Thread Andrew Skegg
Joshua Kappers writes: > > Essentially, I want to achieve something like this: > http://pastie.org/private/0yuhxeqyheqov3pzkhnga > > Item model that can contain many Items that are required to create that > Item. > > I'm new to rails, and having a hard time figuring out how to make this > happ

[Rails] Re: Restful Users

2011-07-18 Thread Andrew Skegg
Tyrel R. writes: > > Sorry its hard to phrase this question > > My user controller is a restful resource so get user shows the profile > page that all users access. I was wondering where to code the control > panel users see when the log in. > Which model(s) does the user's control panel pu

[Rails] Re: Printing nested data to screen

2011-07-18 Thread Andrew Skegg
Barney writes: > > > Skill > <%= @people_skill.build.skill %> > <%= PeopleSkill.where("people_id = @person.id")%> > > > which produced the strange # guesses have either given me errors or no output at all, so please > tell me the right way to do this. > Barney > PeopleS

[Rails] Re: Warnings in rails installation

2011-07-18 Thread Andrew Skegg
Artful writes: > > I tried installing rubygems 1.8.5 and for the most part everything > went as expected, but I received two Warnings and one Message: > > Fetching: builder-2.1.2.gem (100%) > WARNING: builder-2.1.2 has an invalid nil value for @cert_chain > > Fetching: abstract-1.0.0.gem (100%

[Rails] Re: Including associations with dynamic conditions

2011-07-14 Thread Andrew Skegg
Vijayakumar D writes: > > > On Thu, Jul 14, 2011 at 5:53 AM, Andrew Skegg wrote: > > Vijay Dev ...> writes: > > > > > > Given a school model and a student model with the school having a has_many > relation to student: > > > > has_man

[Rails] Re: puzzled by polymorphic related error

2011-07-14 Thread Andrew Skegg
wbsurfver@... writes: > > > > class Attribute < ActiveRecord::Base > belongs_to :attribute_record, :polymorphic => true > end > > class ParsedSection < ActiveRecord::Base > belongs_to :conversion > has_many :attributes, :as => :attribute_record > end > I believe you will have pr

[Rails] Re: Rails application Up-gradation

2011-07-13 Thread Andrew Skegg
nishant writes: > > Hello Guys , > > I have started upgrading my rails application , when i have started > upgrading i was only upgrading only the rails version from rails > 2.3.11 to rails 3 and now i have to upgrade the ruby version as well > from ruby 1.8.7 to ruby 1.9.2 , So i have installe

[Rails] Re: Including associations with dynamic conditions

2011-07-13 Thread Andrew Skegg
Vijay Dev writes: > > > Given a school model and a student model with the school having a has_many relation to student: > > has_many :students, :conditions => proc  { "year_id=#{send (:active_year_id)}" } That smells like it belongs in a named scope on the School rather than on the relation

[Rails] Re: RoR view question: pre-selecting radio box

2011-07-10 Thread Andrew Skegg
aj writes: > > I have the radio buttons, the images, and the comment field set up. > I'm not sure how to pre-select one of the images and wire it to > transmit a value. > Old(ish), but relevant. http://railscasts.com/episodes/52-update-through- checkboxes -- You received this message becaus

[Rails] Re: Question on memory usage, garbage collector, 'top' stats on linux

2011-07-10 Thread Andrew Skegg
DK writes: > > As far as cached, I see in top: > > > Mem:   3994516k total,  3830048k used,   164468k free,   119540k buffers > Swap:   905208k total,        0k used,   905208k free,  3207936k cached > Being simplistic, I would not worry about it unless the swap file is actually being used

[Rails] Re: Best text editor for iPad ?

2011-07-07 Thread Andrew
rious development tool. Andrew On Jul 7, 4:30 am, Rian Andrea wrote: > Check this out...http://www.koderapp.com/, The feature looks neat > > On Thu, Jul 7, 2011 at 6:27 PM, Rodrigo Ruiz wrote: > > > > > What is the best text editor for iPad to write rails apps?? > > > T

[Rails] Re: How to implement a schedule of recurring events?

2011-07-07 Thread Andrew
a form that I can use to create these temporal expressions, then how to convert the temporal expressions into a schedule layout. Any advice? Thanks, Andrew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, se

[Rails] Re: How to implement a schedule of recurring events?

2011-07-07 Thread Andrew
han event "schedules". The problem is that the same schedule of activities occurs every week, so the calendar view would not be very useful since every week would look the same, repeating itself into eternity. If anybody knows of a gem that displays schedules or has done this sort of thing

[Rails] Re: How to implement a schedule of recurring events?

2011-07-05 Thread Andrew
> the whenever gem is also me! take a look into github "Whenever is a Ruby gem that provides a clear syntax for writing and deploying cron jobs." Like I said before, I am not trying to schedule a cron job, I am trying to display a schedule of events. -- You received this message because you are

[Rails] Re: How to implement a schedule of recurring events?

2011-07-05 Thread Andrew
> Take a look:https://github.com/jmettraux/rufus-scheduler Thanks, but I don't think that gem will help me any: "rufus-scheduler is a Ruby gem for scheduling pieces of code (jobs)" I'm trying to display a schedule of events, not schedule a script to be run. -- You received this message because

[Rails] How to implement a schedule of recurring events?

2011-07-05 Thread Andrew
Hello, I am fairly new to Ruby and Ruby on Rails. I am creating an application that "has many :groups", each with their own schedule of events. This is a little different than a calendar of events, since these events recur every week and do not have a specific date. So for example, I need to displ

[Rails] Re: when to add validations to database

2011-07-04 Thread Andrew Skegg
Hassan Schroeder writes: > > On Mon, Jul 4, 2011 at 7:17 PM, Scott Ribe wrote: > > > Really? ***ALL*** access through RoR and the models? ***NEVER*** any direct access for maintenance? Not ever??? > > That wasn't the stated premise -- do I "fully control access to the > underlying database"?

  1   2   3   4   5   6   >