[Rails] [JOB] ParentPowered is seeking a Senior Ruby on Rails Engineer

2018-01-21 Thread Jon Witort
ParentPowered PBC is an education technology company that creates simple tools for great parenting. The company’s first product, Ready4K , is a text messaging application for parents of young children. Each week, parents receive fun facts, easy tips, and mes

[Rails] Ruby Developer Needed

2015-05-12 Thread Jon Capp
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 for another. Please contact me if interested. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. T

[Rails] Checkbox help ;)

2013-09-30 Thread Jon Goodey
"" %> <%= f.check_box :a1, {:multiple => true}, "3", "" %> <%= f.submit %> <% end %> <%= @user.a1.inspect %> output from the inspect element: "---\n- ''\n- '1'\n- ''\n- '2'\n- ''\n" the

[Rails] Broken URLs to guides and APIs on rubyonrails.org

2013-06-26 Thread Jon Moter
end up with a lot of people with broken bookmarks, as well as confused search engine users. Jon -- 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 ruby

[Rails] Coffee-rails beta railtie dependency

2013-04-20 Thread Jon Williams
http://rubygems.org/gems/coffee-rails -- has been updated to 4.0.0, but has a Rails (Railtie) dependency to 4.0.0.beta1. Anyone know why they're moving to 4 prior to Rails going 4.0.0? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Newbie question: How do I get CarrierWave to save my files in a has_many / belongs_to setup?

2012-09-04 Thread Jon
I posted this on StackOverflow, and didn't get much love. I'm hoping someone here can help me. Thanks in advance! I have a form that displays information about a single commercial real estate property. I am trying to create a feature on it that allows the user to upload files to Amazon S3 th

[Rails] Re: collection_select problem

2012-03-22 Thread Jon Karna
pass the :multiple option for the collection_select http://apidock.com/rails/ActionView/Helpers/FormOptionsHelper/select On Monday, March 19, 2012 2:32:24 PM UTC-5, ibtissem fakhfakh wrote: > > hi, > i'am novice at ruby on Rails framework. i'am trying to add a plugin for > Redmin wich is a Rails

[Rails] [ANN] Rails 3.1.2.rc2

2011-11-14 Thread Jon Leighton
rection=desc&state=open&page=1&milestone=8 Cheers, Jon -- 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 e

[Rails] Re: Traffic Splitting

2011-02-24 Thread Jon Kern
have you looked at mongrel clustering for example? -- jon http://technicaldebt.com On Feb 24, 1:49 pm, Maxo wrote: > Hello, > > I am developing a rails application and have encountered the problem > of splitting up traffic coming to the domain. As an example, I would > like

[Rails] Re: Error on manual install of GEM using Ruby 192p136 + Ubuntu 10.10

2011-01-04 Thread Jon W.
Vince W. wrote in post #971862: > Before installing1.9.2 did you install zlib? > > sudo rvm package install zlib > > Also, note that you don't do gem installs when running rvm, instead you > use rvmsudo gem install yes, I tried various ways of installing "zlib" as a system library. I tried rvm,

[Rails] Re: Error installing GEM on Ubuntu 10.10 with Ruby 192p136

2011-01-04 Thread Jon W.
Thank you. I was able to workaround it by installing the "Ruby 1.9.1" package on Ubuntu, which is actually Ruby 1.9.2, to my surprise. I wasn't able to get through the manual install but Ubuntus packages are working for me. Thanks. -jon Frederick Cheung wrote in post #971

[Rails] Rails 3 application name

2011-01-03 Thread Jon S.
w name and also make the internal changes that are required? I see this is probably because a class name cannot start with a number... thanks...jon -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] Re: Error on manual install of GEM using Ruby 192p136 + Ubuntu 10.10

2011-01-01 Thread Jon W.
(explained in this thread) but I am able to work around it... -jon Jon W. wrote in post #971729: > More clues: > > r...@ubuntu-virtualbox:/home/adminuser/Desktop/rubygems-1.4.0# rvm > package install zlib > Fetching zlib-1.2.5.tar.gz to /usr/local/rvm/archives > Extracting zlib-1.

[Rails] Re: Error installing GEM on Ubuntu 10.10 with Ruby 192p136

2011-01-01 Thread Jon W.
Thanks for the info on gem-prelude. I already suspected that 1.4 might have an issue and so I also tried a manual install of GEM 1.36 but I had the exact same issue. So, I doubt that this is an issue only concerning 1.4 Any further ideas? -jon Frederick Cheung wrote in post #971797

[Rails] Re: Error on manual install of GEM using Ruby 192p136 + Ubuntu 10.10

2010-12-31 Thread Jon W.
More clues: r...@ubuntu-virtualbox:/home/adminuser/Desktop/rubygems-1.4.0# rvm package install zlib Fetching zlib-1.2.5.tar.gz to /usr/local/rvm/archives Extracting zlib-1.2.5.tar.gz to /usr/local/rvm/src Configuring zlib in /usr/local/rvm/src/zlib-1.2.5. Compiling zlib in /usr/local/rvm/src/zlib

[Rails] Re: Error on manual install of GEM using Ruby 192p136 + Ubuntu 10.10

2010-12-31 Thread Jon W.
Trying to understand why I get this error. I tried to follow instructions at : http://www.hackido.com/2010/12/install-ruby-on-rails-on-ubuntu.html Here is some more info on the issue: r...@ubuntu-virtualbox:/home/adminuser/Desktop/rubygems-1.4.0# rvmsudo gem install r

[Rails] Error on manual install of GEM using Ruby 192p136 + Ubuntu 10.10

2010-12-31 Thread Jon W.
r...@ubuntu-virtualbox:/home/adminuser/Desktop/rubygems-1.4.0# ruby -v ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux] r...@ubuntu-virtualbox:/home/adminuser/Desktop/rubygems-1.4.0# ruby ./setup.rb /home/adminuser/Desktop/rubygems-1.4.0/lib/rubygems/source_index.rb:62:in `installed_spec_d

[Rails] Error installing GEM on Ubuntu 10.10 with Ruby 192p136

2010-12-31 Thread Jon W.
I get a error using Ubuntu 10.10 with Ruby 1.9.2p136 and trying to manually install the GEM package. I am thrown for a loop on this one. What is wrong? --- r...@ubuntu-virtualbox:/home/adminuser/Desktop/rubygems-1.4.0# ruby ./setup.rb /home/adminuser/Desktop/rubygems-1.4.0

[Rails] Re: Ruby on Rails download page misleading instructions: Ruby 1.9.2p0 + RubyGems = error

2010-12-31 Thread Jon W.
I get the exact same error using Ubuntu 10.10 with Ruby 1.9.2p136 . I am thrown for a loop on this one. What is wrong? r...@ubuntu-virtualbox:/home/adminuser/Desktop/rubygems-1.4.0# ruby ./setup.rb /home/adminuser/Desktop/rubygems-1.4.0/lib/rubygems/source_index.rb:62:in `installed_spec_dire

[Rails] Re: Re: Unable to use ruby-debug

2010-11-09 Thread Icenine Jon
Rajinder Yadav wrote in post #960332: > you will also need to type the following at the prompt: > > bundle install > > FYI: when replying get into the habit of bottom posting, it's easier to > follow thread Thanks Rajinder! -- Posted via http://www.ruby-forum.com/. -- You received this message

[Rails] Re: Unable to use ruby-debug

2010-11-08 Thread Icenine Jon
That did the trick! I just converted over to Rails 3 so I wasn't aware of the Gemfile requirement. smbepiec, thanks for the suggestion -- it will come in handy when I update to Ruby 1.9.2. Arzumy MD wrote in post #960061: > In Rails 3 you need to include the gem in Gemfile > > gem 'ruby-debug' >

[Rails] Unable to use ruby-debug

2010-11-07 Thread Icenine Jon
I'm trying to use ruby-debug but when I try to start the server with it, I get an error saying I need to install it (even though it's installed): tiberius:project Jonathan$ sudo gem install ruby-debug Building native extensions. This could take a while... Successfully installed ruby-debug-base-0

[Rails] Re: mysql e rails won't work!

2010-10-16 Thread Jon W.
im having the same issue. i forgot to run the "dk.rb install" for the DevKit but now that I try, the dk.rb is complaining to me it cant find the config.yml (in some unknown location) . Frederick Cheung wrote in post #943745: > On Sep 24, 11:05 pm, CaViCcHi wrote: > >> C:/Ruby192/lib/ruby/1

[Rails] Re: Beginner cant get rake to work

2010-10-15 Thread Jon W.
Okay that fixed the dependicies for the shell, seems like there is something wrong with the gem though. When i try to use rake from my IDE it searches for the gem and it fails. Well I can work around it. Thank you -- Posted via http://www.ruby-forum.com/. -- You received this message because

[Rails] Re: Beginner cant get rake to work

2010-10-14 Thread Jon W.
gem list posts *** LOCAL GEMS *** ... rake (0.8.7) ... and try installing and updating using gem but still doesnt work -- 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, s

[Rails] Beginner cant get rake to work

2010-10-14 Thread Jon W.
) from C:/Ruby192/bin/rake:19:in `' and I am not quite sure what I should do to fix it... Thank you in Advance Jon W -- 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

Re: [Rails] How to create a project with an older version of rails

2010-09-17 Thread Jon Leighton
On Fri, 2010-09-17 at 14:48 +0200, Greg Ma wrote: > Hi, > I have installed Rails 3 on my local machine. Let's say I wan't to > create a new project but in version 2.3.5, can I do that? Easiest way is probably to use an RVM gemset which just contains 2.3: http://rvm.beginrescueend.com/gemsets/basic

Re: [Rails] Extract all routes and test their views?

2010-09-17 Thread Jon Leighton
thub.com/aslakhellesoy/cucumber/tutorials-and-related-blog-posts Cheers, Jon -- http://jonathanleighton.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-t...@googlegr

Re: [Rails] Rails base model

2010-09-17 Thread Jon Leighton
module in the models instead. If it might be useful for several different projects, you could put your module in a plugin, and then have the module automatically include itself in ActiveRecord::Base (therefore making its behaviour available to all models). Hope that helps, Jon -- http://jonat

Re: [Rails] ActionMailer + GMail STMP: How to set FROM header?

2010-06-23 Thread Jon Brisbin
ad to switch from using Gmail to a locked-down direct SMTP server using exim4. Thanks! Jon Brisbin http://jbrisbin.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-t...@goog

[Rails] Flash not deleting with Redis/Memcache store

2010-05-31 Thread Jon Brisbin
I'm a recent convert to Rails and I'm working on a new project using Rails 2.3 (I'll probably upgrade at some point when Rails 3 is in production and had a chance to bake the .0 bugs out). I'm going to use Redis anyway for caching important data, so I thought I'd use the redis-store: http://git

[Rails] Re: Designer - Introduction

2010-02-15 Thread Jon Cox
some stunning designs you've put together. I'm always a little in awe of designers - it's a skill i've never had and never will. Welcome to the rails group. Jon -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google G

[Rails] Re: how do I get all records whose count of associations is above a certain number

2010-02-15 Thread Jon Cox
Frank Kim wrote: > I have a model, let's call it Player. > > It has many Trophies. > > How do I do a simple query in Rails in my controller that will return > let's say all Players that have more than 5 tropies? > > Sorry for the dumb question but I can't figure it out. :-) > > -- > Frank Kim >

[Rails] Re: Design Advice

2010-02-04 Thread Jon Cox
Sharagoz -- wrote: >>I'm a little confused > Checking what type of user is logged in is as simple as > current_user.class. > Rails doesnt "use a subclass", like its faking anything, the object is > truly an object of that class. If you do User.find(1).class it might > tell you that it is a moder

[Rails] Re: QUERY HELP

2010-02-03 Thread Jon Cox
Marnen Laibow-Koser wrote: > Newb Newb wrote: >> Sharagoz -- wrote: >>> You really should redesign this, but anyway >>> >>> "select * FROM logs where sender = 1 and receivers LIKE '%2%'" works if >>> the receivers have one digit ID's. >>> >>> If not, you will probably have to do >>> logs = Log.f

[Rails] Re: Install a separate set of gems...

2010-02-03 Thread Jon Cox
Conrad Taylor wrote: > On Tue, Feb 2, 2010 at 2:08 PM, jiggy wrote: > >> I run a small RoR application on a company server. I try to install >> my own list of gems because I would like to test new features, but the >> admin did not want to install these because these may disrupt other >> applica

[Rails] Re: Re: cucumber vs. RSpec

2010-02-01 Thread Jon Cox
Ray K. wrote: > There are the bddcasts: www.bddcasts.com > They do cost money, but they're worth it, so is the rspec book. > > A word of advice: > Learning RoR at the same time with Cucumber and RSpec will require you > to fight a very steep learning curve. > Very often you will neither know how

[Rails] Re: Newbie question: Integrating Authlogic plug-in more deeply

2010-01-26 Thread Jon Cox
> Myprojects controller > class MyprojectsController < ApplicationController > def index > @myprojects = current_user.Project.all #< 'Project' > reference here is getting an undefined method error > > respond_to do |format| > forma

[Rails] Re: Re: database design question: building features

2010-01-25 Thread Jon Cox
Taylor Strait wrote: > Kristian - thanks for the reply. I think it would be easier, too! But... > I was wondering if I am violating some kind of best practice to put all > the fields in one model even if half of them will be empty most of the > time? i think it can sometimes be a fault to over-

[Rails] Re: button

2010-01-25 Thread Jon Cox
> You also have button_tag but this won't create an html tag, it > does though create a simple form wrapped around an input which means > your backend gets a consistent result regardless of the browser > ( is a bit inconsistent depending on the users browser). oops i meant button_to . --

[Rails] Re: button

2010-01-25 Thread Jon Cox
Tom Mac wrote: > Colin Law wrote: >> 2010/1/25 Tom Mac : >>> Hi >>> � I have >>> Create > > Not an error f.submit creates the html as > value="Create" /> > > But what I need is exactly > Create > > If directly use this no problem But what I ould like to know an > alternative in railshelp

[Rails] Re: what should e relationship etween these models

2010-01-25 Thread Jon Cox
Tom Mac wrote: > Hi Jon Cox > >Thanks for your reply. My idea is to create a saas based application > which has the initial signup procedure in basecamp like > > https://signup.37signals.com/basecamp/Basic/signup/new?source=signin-screen&__utma=1.193660493.1263811484.1

[Rails] Re: what should e relationship etween these models

2010-01-22 Thread Jon Cox
Tom Mac wrote: > Hi >> Consider this example: >> >>> organizations has_many employees >>> employee belongs_to organization >>employee belongs_to adminstered_organization > >Could you please specify the model structure and relation now? maybe the requirement needs to be expanded a touch a

[Rails] Re: Syntax Highlighting

2010-01-21 Thread Jon Cox
x27;re > willing to to, why do you use it? I'm really new to rails and i'm finding textmate very good. I went with the custom 'theme' from Ryan Bates' that he uses in his railscasts (http://railscasts.com/about). I like the text on the dark background. Jon -- Posted

[Rails] Re: Re: How to redirect to 'new'

2010-01-21 Thread Jon Cox
Rob Biedenharn wrote: > On Jan 20, 2010, at 11:05 AM, Jon Cox wrote: >>>>>> the >>>>> the >>>> Right, off to read the ruby tutorial to learn how to do this. >>> into a >> versions of the submit button. In the create method i'll

[Rails] Re: How to redirect to 'new'

2010-01-20 Thread Jon Cox
Jon Cox wrote: > Jon Cox wrote: >> Frederick Cheung wrote: >>> On Jan 19, 3:10 pm, Jon Cox wrote: >>>> So far i've taken the scaffolded new.html.erb file and tried to add a >>>> 'button_to' that has an :action that contains the name o

[Rails] Re: How to redirect to 'new'

2010-01-19 Thread Jon Cox
Jon Cox wrote: > Frederick Cheung wrote: >> On Jan 19, 3:10 pm, Jon Cox wrote: >>> So far i've taken the scaffolded new.html.erb file and tried to add a >>> 'button_to' that has an :action that contains the name of a method i >>> added to the co

[Rails] Re: How to redirect to 'new'

2010-01-19 Thread Jon Cox
Frederick Cheung wrote: > On Jan 19, 3:10 pm, Jon Cox wrote: >> So far i've taken the scaffolded new.html.erb file and tried to add a >> 'button_to' that has an :action that contains the name of a method i >> added to the controller. But the method doesn'

[Rails] How to redirect to 'new'

2010-01-19 Thread Jon Cox
Hi guys, I'd like to be able to display my 'new' view but have an intermediate step before saving the new record using the 'create' button. Basically, some of the data for the model is variable and dependant on a number that the user needs to select. I envisaged a button along the lines of 'go get

[Rails] Re: Design question and opinions

2010-01-15 Thread Jon Cox
Robert Walker wrote: > If you have written your Cucumber stories and/or RSpec examples before > all this work, using them to drive your design, then you are on the > right track to good practice and design. Thats great advice and was on my list of 'when i've got the basics down i need to go and

[Rails] Re: Design question and opinions

2010-01-15 Thread Jon Cox
ooh found 'has_many_and_belongs_to' in ActiveRecord that takes care of the match->match_game<-game relationship nicely! The solution i think i'm going to go with is to pre-load the game table and add some methods to the game model to return a game or games in the various ways i'll need them e.g

[Rails] Design question and opinions

2010-01-14 Thread Jon Cox
I'm just working through the Agile web dev book (which is great) and i'm at the point i'd like to put together something to test my understanding. Luckily I have a project that will help my gaming community organise games on modern warfare 2. It also doesn't map onto the depot like for like which i

[Rails] ActiveRecord setting has_many association

2010-01-13 Thread Jon Stenqvist
Hi, Can someone help me with this, why does it not work when the association is already set, shouldn't it be overridden? require 'rubygems' require 'activerecord' ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') class Rider < ActiveRecord::Base connectio

[Rails] Re: Problem with Sessions

2010-01-12 Thread Jon Cox
MattWim wrote: > Thanks for your input guys, I have sorted the problem with the simplest > of > solutions I should have tried earlier... > > Restarted my pc, something must have messed up maybe with MySQL or maybe > with my browser. I just got so used to it being my dodgy code!! Amazing > how >

[Rails] Rails fixtures - defining a table name?

2009-12-22 Thread Jon Morgan
Hi, At the minute all my fixtures have the same name as the table that they are intended for, because of a recent issue with rails it doesn't seem possible to have a fixture beginning with the word 'test' Does anyone know of a way to have a different fixture name and then map it to the correct ta

Re: [Rails] Rails gem/plugin scheduler

2009-12-06 Thread Jon Pascoe
your rake tasks and redeploy your app. No need for further interaction with cron. Good luck! Jon On 6 Dec 2009, at 23:36, Joshua Partogi wrote: > Dear all, > > I'm currently intending to add a scheduler from my rails app. Is there > any recommendable plugin or gem to achieve th

Re: [Rails] Using MySQL with Rails

2009-12-06 Thread Jon Pascoe
You need to install the mysql gem too. sudo gem install mysql On 6 Dec 2009, at 14:58, shusseina wrote: > If I want to use MySQL instead of sqlite3 when creating a Rails > application, apart from creating the application with the -d mysql and > configuring the config/database.yml file is there

[Rails] Re: Insert Multiple records in table

2009-11-02 Thread Jon Hinson
dations as well. Jon On Nov 2, 5:01 am, Brijesh Shah wrote: > Sandip Ransing wrote: > >http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nest... > > > On Mon, Nov 2, 2009 at 4:04 PM, Brijesh Shah < > > rails-mailing-l...@andreas-s.net> wrote: > >

[Rails] Gem for User to User inter-site messages

2009-10-23 Thread Jon Cianciullo
Does anyone know of a good basic ruby gem for allows users to send (inter-site) messages to other users within a web site? Thanks! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[Rails] Rails Development and Solid State Drive (SSD)

2009-10-13 Thread Hunt Jon
Hi - I'm wondering if using a SSD-based Mac has noticeable performance gain in the Rails or any general development. I'm especially curious to know the speed of testing including autotest and autospec. Anybody using 13/15inch MacBook Pro with SSD for the developm

[Rails] :lib in config.gem

2009-10-10 Thread Hunt Jon
it somewhere in Rails? Or does the config.gem() runs "require" statement as well? Sorry for the stupid questions. - Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Problem with Double Submit

2009-09-05 Thread Hunt Jon
Rails app to have a solution, do you know any? Any help would be appreciated. Jon --~--~-~--~~~---~--~~ 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 rubyon

[Rails] Deep nested associations on the same Model

2009-09-01 Thread Jon Hope
This could be a lot simpler than I think and I'm just missing something obvious! I'm working on a creative collaboration app whereby one user could submit a Story and this can then be forked by another user and worked on seperately. To acheive this I have a has_many association within the same S

[Rails] REST and confirmation page routing

2009-08-09 Thread Hunt Jon
ot; is visible to POST and go back to the previous page. Is there any open source project that would be a good example for this solution? Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] Rails/Ruby Style Guideline?

2009-07-08 Thread Hunt Jon
e's a good guideline agreed among team members. Do you know any other attempts? I looked RailsMaturityModel (RMM), but there is nothing like this. Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

[Rails] Re: noob validation question for time_zone

2009-06-12 Thread Jon
Thanks Ryan, Colin -- I should have gone with my first instinct to validate in the model. Works now! On Jun 12, 8:11 am, Ryan Bigg wrote: > You can do validates_presence_of :time_zone in the relevant model to > ensure that the field is not left blank. --~--~-~--~~~--

[Rails] noob validation question for time_zone

2009-06-12 Thread Jon
Despite much googling and book checking, I can't for the life of me figure out how to check if the time_zone object is nil. The situation is that I built a fun little delayed email delivery app -- http://mailthislater.com if you're interested -- and want to ensure that the user selects his time

[Rails] new member, introducing msyelf

2009-06-05 Thread Jon
ng forward to the discussion and helping out when i can. -jon http://jonathangcohen.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

[Rails] Developing with GNU Screen

2009-05-26 Thread Hunt Jon
he session in GNU Screen. I think I'm wrong in somewhere because a lot of people prefer GNU Screen. Can anybody explain the usefulness and what's wrong in my view? Jon Hunt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Named Scopes and Will_paginate

2009-05-25 Thread Hunt Jon
I would like to move the following code to a model using named_scopes. I cannot find a good example to show me the way name_scopes and will_paginate go hand in hand. @images = Image.paginate :page => params[:page], :per_page => 10, :order => 'created_at DESC' Can any

[Rails] Passing a JavaScript variable through a Rails params hash

2009-05-24 Thread Jon Hope
Does anyone have any suggestions for a neater way to do it? Thanks, Jon -- 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 gr

[Rails] How to create associations with Factory Girl?

2009-04-24 Thread Hunt Jon
I watched the RailsCasts episode on factory_girl, and I'm trying to get out of fixtures. * Does anybody know an open source project that uses many of the factory_girls features? I came up with a pseudo code for possibly showing some association features I don't understand yet. Here's the code.

[Rails] Shoulda vs Remarkable

2009-04-23 Thread Hunt Jon
If my understanding is correct, shoulda now works with RSpec. Does anybody have experience with Shoulda + RSpec? What about comparing it with Remarkable with Shoulda? Which is more reliable? How's the developers' response? Jon --~--~-~--~~~---~--~~ Yo

[Rails] Re: Webrick 'require_frameworks' message

2009-04-22 Thread Jon Reid
Sorry in step 3 that is just plain "make" not "run make". -- 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

[Rails] Re: Webrick 'require_frameworks' message

2009-04-22 Thread Jon Reid
For those of you who struggled through the message boards to try and fix this here is what fixed it for me. I am installing and running Ruby on Rails for the first time and running through one of the online tutorials. I am using Ubuntu and kept getting the error message of the original post.

[Rails] Re: HTTP Basic Authentication

2009-04-22 Thread Hunt Jon
Thanks. That's how I can pass the first argument. Now I understand. Thanks. John On Wed, Apr 22, 2009 at 10:49 PM, Dmitry Sokurenko wrote: > > Try: > >  authenticate_or_request_with_http_basic('YourRealm') do |username, > password| >   username == "foo" && password == "bar" >  end > > Dmitry >

[Rails] HTTP Basic Authentication

2009-04-22 Thread Hunt Jon
I'm trying to HTTP Basic Authentication mentioned at http://railscasts.com/episodes/82-http-basic-authentication I'm trying to understand the document. http://github.com/rails/rails/blob/be7b64b35aac1c9e9063d1d8317f8b1be2a3411c/actionpack/lib/action_controller/http_authentication.rb#L111 The Rai

[Rails] Re: restful_authentication: 3 unit tests break!

2009-04-22 Thread Jon Hinson
to the :pending state. What happens at this point is that make_activation_code is called because of this line: state :pending, :enter => :make_activation_code. Your model is saved after you call register because aasm changes the state of the model and then saves that model. Hopefully this hel

[Rails] Re: AJAX: link_to_remote creates a post request

2009-04-13 Thread Jon Hope
Thanks guys, major brain malfunction there! -- 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-tal

[Rails] AJAX: link_to_remote creates a post request

2009-04-13 Thread Jon Hope
I've tried googling this and simply can't believe this problem hasn't come up before but I'll explain it as I'm getting it here. I'm using RESTful actions in my controllers and trying to introduce a little AJAX fun to my app. Basically plan is for the user to click a link which shows a div contai

[Rails] How to implement checkbox-like selection with client-side state & controls?

2009-04-07 Thread jon-k
* Prevent non-adjacent words from being selected * Allow the user to submit the current selection The text needs to read as a sentence, and I want to minimise server involvement. Is there anything in Rails or its plugins to help me out here, or is pure Javascript the answer? c

[Rails] Re: auto_complete and Prototype 1.6.0.3

2009-03-24 Thread Jon Garvin
.2 was released) and nobody's noticed until now. Brian Hogan wrote: > I guess it depends on how you have it coded. Some of the autocomplete > stuff was moved out into a plugin which may not be maintained anymore. > > On Tue, Mar 24, 2009 at 12:32 PM, Jon Garvin wrote: > >>

[Rails] auto_complete and Prototype 1.6.0.3

2009-03-24 Thread Jon Garvin
We've got a site running on Rails 2.2.2 with Prototype 1.6.0.3 that uses the rails/auto_complete plugin from github. We just discovered that, in IE7 (haven't tried IE8 yet), when a user types a name into the auto_complete text field, the query gets sent to the server fine and the server returns

[Rails] Reporting Site activity

2009-03-18 Thread Jon Hope
Does anyone know of any discussions or blog posts around that discuss effective performance monitoring in Rails? What I'd really like to do is implement a constant feed of activity on my site, across all Models. Rather than store all that information separately in the database as a feed I'd like

[Rails] New Google Groups for Vim and Ruby/Rails Developers

2009-02-18 Thread Hunt Jon
Announcement for new group for Vim users. http://groups.google.com/group/vim-on-rails?hl=en Sharing vim usage for Ruby on Rails development. Includes any platform (Windows, Linux and Mac). Discuss anything related to Ruby and Ruby on Rails development. (migration from TextMate, HAML/SASS, RSpec,

[Rails] Vim on Rails

2009-02-11 Thread Hunt Jon
Is there any group focused on usage of Vim on Ruby on Rails development? Possibly an emailing list (Google Group)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,

[Rails] Can't Install Rails. Can any one help Please!

2009-01-29 Thread Jon Bi
I keep getting an error message when i try an install rails. I am using xp.These are the steps i took. 1. Download the One-click ruby installer from rubyforge http://rubyforge.org/frs/?group_id=167 (warning this is a big file!). The one I used was ruby186-25.exe but there may be a later version a

[Rails] Re: I'm trying to prepend a parameter to all of my routes

2008-12-19 Thread Jon Hinson
Never mind, I found the solution- :path_prefix On Dec 19, 8:29 am, Jon Hinson wrote: > I'm developing a facebook app and all of my routes go something like > this :org_id/:controller/:action/:id , where all of my urls will be > prepended by this org_id. Is there a way to h

[Rails] I'm trying to prepend a parameter to all of my routes

2008-12-19 Thread Jon Hinson
ssage: No action responded to 1 So how do I make all routes recognize the prepended :org_id without manually making an entry for each one? Thank you, Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Ra

[Rails] Re: finddef - find methods in textmate

2008-12-15 Thread Hunt Jon
Is this different from RubyAMP's functionality? --~--~-~--~~~---~--~~ 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

[Rails] Re: Hot cache

2008-10-16 Thread Jon Stenqvist
large during this time. Mark James wrote: > Jon Stenqvist wrote: > >> I have a page that takes about 1 second to generate, when the amount of >> data is large. This page is cached. When new data is comming in and >> imported by a background process I want to rebuild the cache

[Rails] Hot cache

2008-10-16 Thread Jon Stenqvist
requests. So how will i best trigger and action on a controller from my background process (running with workling) Thanks Jon -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Re: Any status of the book "Agile Testing With Ruby and Rails"?

2008-10-13 Thread Hunt Jon
Just to follow up. I contacted Apress, and they told me that the book was cancelled. -J --~--~-~--~~~---~--~~ 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] Any status of the book "Agile Testing With Ruby and Rails"?

2008-10-11 Thread Hunt Jon
Does anybody know if the book is really being published? http://www.amazon.co.uk/dp/1590599152/ I've been waiting for a while, but looks like the schedule is put off over and over. Can anybody recommend good resources for TDD/BDD for newbies? Thanks, -J --~--~-~--~~~

[Rails] Re: How to go back to the Home page

2008-10-11 Thread Hunt Jon
Basically, you need to delete index.html in public folder before starting to develop. We don't use it. It's just there to see if Rails is running fine and show "Welcome aboard" message. --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[Rails] Test Coverage Tool for TDD?

2008-10-11 Thread Hunt Jon
idn't find anything about coverage. -Jon --~--~-~--~~~---~--~~ 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 unsubscr

[Rails] Re: Helper methods from controller

2008-10-06 Thread Jon Stenqvist
Robby Russell wrote: > On Sun, Oct 5, 2008 at 5:38 AM, Jon Stenqvist > <[EMAIL PROTECTED]> wrote: >>> Maybe Im not understanding your situation, but filters are more used for >>> application logic and typical cases like logging, benchmarking etc. >>> Wouldnt

[Rails] Re: Helper methods from controller

2008-10-05 Thread Jon Stenqvist
Raja Venkataraman wrote: > Jon Stenqvist wrote: >> Hi, >> >> I'm not sure i'm my design is correct, but i have around_filter in the >> controller, where i want to add a small javascript at the end of the >> page. Is there someway i can use the java

[Rails] Helper methods from controller

2008-10-05 Thread Jon Stenqvist
Hi, I'm not sure i'm my design is correct, but i have around_filter in the controller, where i want to add a small javascript at the end of the page. Is there someway i can use the javascript_tag from the controller? i though there where a helpers proxy available. /Jon -- Poste

[Rails] Re: error message 'undefined method `require_gem' for main:Object (NoMethodError)'--how to resolve?

2008-09-30 Thread Hunt Jon
require_gem 'gemname' is now to require 'rubygems' require 'gemname' This is how you convert. --~--~-~--~~~---~--~~ 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 rubyo

  1   2   >