[Rails] Re: ActionMailer Preview. Is it posible to use multiple paths?

2017-03-31 Thread Jeremy Wilmot
I've run into this same issue myself. It looks like work started on this feature but bogged down. See https://github.com/rails/rails/pull/16836 Would be great to get that pull request fixed up and merged in! On Saturday, March 25, 2017 at 12:44:02 AM UTC-7, Илья Николаевич wrote: > > Hi there! >

[Rails] Re: Turbolinks not working

2015-12-03 Thread Jeremy Montesinos
Up ! -- 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 to

[Rails] Re: Turbolinks not working

2015-12-03 Thread Jeremy Montesinos
The Html : Créer un incident - Tick{Master} TickMaster Nouvel incident Incidents Mes incidents http://localhost:3000/incidents";>Tous les inciden

[Rails] Turbolinks not working

2015-12-02 Thread Jeremy Montesinos
Hi, i'm working on a project in Rails. When I click on a "link_to" button turbolinks is not working. But when I create a "" link, it's working ! Why ? I use Google chrome for look if it working. But in firefox it's not working too. My app.js : // //= require jquery //= require bootstrap-sprockets

[Rails] Re: Rails uniqueness email

2015-03-18 Thread Jeremy Montesinos
J'ai du nouveau ! Apparement c'est le *attr_accessor* qui mettait la pagaille ! Merci à tous ! :) -- 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 rubyonr

[Rails] Re: Rails uniqueness email

2015-03-18 Thread Jeremy Montesinos
yntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /media/jeremy/5256-8C40/sample_app/spec/models/user_spec.rb:25:in `block (2 levels) in &#x

[Rails] Rails uniqueness email

2015-03-17 Thread Jeremy Montesinos
Salut à tous, je suis en train de créer une application avec Rails 4.2. J'ai un souci d'unicité. Je voudrais vérifier qu'une adresse email n'est pas en double dans la base de données et voici comment je fais : app/models/users.rb # == Schema Information # # Table name: users # # id :i

Re: [Rails] Beginer Issue: NoMethodError in Posts#show

2014-07-09 Thread Jeremy Guilbert
Ok thank you for your answers. -- 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

[Rails] Beginer Issue: NoMethodError in Posts#show

2014-07-08 Thread Jeremy Guilbert
owing points. I have checked my files several times and I can't figure out where is my mistake, I can submit a post and then there is no display I get the error : NoMethodError in Posts#show Showing */home/jeremy/projet/blog/app/views/posts/show.html.erb* where line *#3* raised: undefine

[Rails] Re: Timezone & DST help

2013-02-26 Thread Jeremy Woertink
Ok, I think I've come up with 2 solutions. 1. Go with Javascript http://www.datejs.com/ Date.parse("2013-03-09").getUTCOffset() // "-0800" Date.parse("2013-03-10").getUTCOffset() // "-0700" 2. Parse it in ruby Time.parse("2013-03-09 20:00:00").localtime.strftime("%z") # "-0800" Time.p

[Rails] Timezone & DST help

2013-02-26 Thread Jeremy Woertink
s a date, and it will return the proper offset for any time zone with DST into consideration? Thanks, ~Jeremy -- 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 gr

[Rails] Protecting certain model attributes from being exposed in an API

2012-10-01 Thread Jeremy Baker
posed-in-an-api Your thoughts are much appreciated. Thanks in advance. Jeremy -- 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] Bonus talk for MagicRuby 2012! Register now!

2012-09-06 Thread Jeremy McAnally
tion. If you have any questions at all, feel free to ping me off-list. Thanks, Jeremy and the MagicRuby team -- http://jeremymcanally.com/ Positivity every morning: http://goodmorninginterwebs.com Bowties, ties, and more: http://wickhamhousebrand.com -- You received this message because you

[Rails] Ruby Hoedown 2012 -- The FREE Ruby conference in Nashville, TN -- CFP and registration now open!

2012-08-08 Thread Jeremy McAnally
questions, pop over to the very simple website at http://rubyhoedown.com (it might be there in the limited info); otherwise, feel free to ping me off-list. I'll be happy to answer anything (including sponsorship inquiries!). Thanks! Jeremy and the Hoedown team -- http://jeremymcanally.com/

[Rails] MagicRuby 2012 (the only Ruby conference *inside* Walt Disney World!) – Registration open and CFP open for one more week!

2012-07-24 Thread Jeremy McAnally
otherwise, feel free to ping me off-list. I'll be happy to answer anything (including sponsorship inquiries!). Thanks! Jeremy and the MagicRuby team -- http://jeremymcanally.com/ Bowties, ties, and more: http://wickhamhousebrand.com -- You received this message because you are subscrib

Re: [Rails] Re: Re: foo_path not defined

2012-06-06 Thread Jeremy Walker
On 6 Jun 2012, at 18:21, Perry Smith wrote: > Colin Law wrote in post #1063357: >> On 6 June 2012 15:33, Perry Smith wrote: >>> Thanks. >>> >>> I checked http://guides.rubyonrails.org/routing.html first. The code I >>> have, to my eyes, match the lead examples in sections 1.1 and 1.2. >>> The

Re: [Rails] Re: Problem with array of hashes

2012-06-05 Thread Jeremy Walker
On 5 June 2012 23:01, cyber c. wrote: > Hi Jeremy, > > Thanks for the reply. > I want to populate my DB during init one time by crawling through a set > of directories with filenames and paths. How do i do this? > Where, or how? Where: db/seeds.rb How: Iterate through directo

Re: [Rails] Re: Problem with array of hashes

2012-06-05 Thread Jeremy Walker
On 5 June 2012 19:19, cyber c. wrote: > Jeremy W. wrote in post #1063195: > > On 5 Jun 2012, at 18:58, "cyber c." wrote: > > > >>for file in @files > >> @paths = A.fill_paths > >> for path in @paths > >> puts path.a > &

Re: [Rails] Problem with array of hashes

2012-06-05 Thread Jeremy Walker
On 5 Jun 2012, at 18:58, "cyber c." wrote: > Hi , > > I have created an array of hashes using > > Model file class > > Class A < ActiveRecord::Base > > def fill_paths > paths = Array.new >for file in @files > path = {} > path["a"] = file > path["b"] = DATA2(assume data2 i

Re: [Rails] Re: Routing error: no route matches contoller works. Route exists though

2012-06-05 Thread Jeremy Walker
On 5 June 2012 18:08, Martyn W. wrote: > Hassan Schroeder wrote in post #1063180: > > On Tue, Jun 5, 2012 at 9:56 AM, Martyn W. wrote: > > > >> I dont understand why after failing the save in the controller and > >> trying to render "new" it would give me a route matching error. Any > >> ideas?

Re: [Rails] Double render in rails

2012-06-05 Thread Jeremy Walker
On 5 June 2012 15:22, kingston.s wrote: > Hi all, > > Is double render or redirect possible in rails..? > Could you provide a example of what you're trying to achieve, please. > > Please tell me if possible > > Thanks > > -- > You received this message because you are subscribed to the Go

Re: [Rails] Beginner's:Problem with populating database

2012-06-04 Thread Jeremy Walker
On 5 June 2012 01:02, cyber c. wrote: > Hi, > > I wanted to populate the DB with (name,data) pairs based on some rules. > I have created a scaffold with name and data as attributes. In the > controller file under the def for index, i have changed the line > @data_pairs = DataPair.all to > @data_p

Re: [Rails] Re: Rails Step by Step Tutorial for ubuntu

2012-06-04 Thread Jeremy Walker
On 4 June 2012 21:32, Code Man wrote: > Hello Jeremy, > > before anything thanks for da reply, > > What I want is to start developing a website on Rails, nothing else, I > wanted to use mysql because it what my hosting provides, so the question > is what you recommend me to

Re: [Rails] Rails Step by Step Tutorial for ubuntu

2012-06-04 Thread Jeremy Walker
On 4 June 2012 21:05, Code Man wrote: > Hello, > > I was wondering if anyone knows of a good step by step tutorial to > install Apache + Mysql + PHPmyadmin + Ruby + Rails or any other web > server to develop in rails in Ubuntu (Linux), I been to trying to > install it but it is very hard because

Re: [Rails] Gem Dependency error

2012-06-01 Thread Jeremy Walker
On 31 May 2012, at 13:52, Subal Charla wrote: > I am following Michael Hartl's Tutorial on RoR. During the 3rd Chapter > (sample_app), I am trying to install the gems via the "bundle install > --without production command" but I keep encountering the following > issue: > > > Bundler could not

Re: [Rails] Re: Relationship issue with activerecord rails

2012-05-29 Thread Jeremy Walker
On 29 May 2012 13:26, Steve Knit wrote: > Hello Jeremy, thanks for providing me your experience and quick > response! > You're welcome! So you know, it's customary to post your responses in the relevant place of a thread, rather than top-posting. It makes the conversati

Re: [Rails] Re: Relationship issue with activerecord rails

2012-05-29 Thread Jeremy Walker
On 29 May 2012 13:14, Steve Knit wrote: > Thanks for pointing me to @pets = admin.pets.all but now I'm getting the > error > >ActiveRecord::StatementInvalid in PetsController#index > >SQLite3::SQLException: no such column: pets.admin_id: SELECT > "pets".* FROM "pets" WHERE ("pets".admin_i

Re: [Rails] Relationship issue with activerecord rails

2012-05-29 Thread Jeremy Walker
On 29 May 2012 12:56, Steve Knit wrote: > I am still learning Rails, I've read some books and did some hands on at > codeschool.com and now I'm trying to write my first simple app from > scratch. > > I'm using devise for authentication, but since i still kinda suck at > rails, I haven't gotten em

Re: [Rails] Can't get css to load in rails 3.2.3 development

2012-05-26 Thread Jeremy Walker
On 26 May 2012, at 22:33, Colin Law wrote: > On 26 May 2012 22:18, Vell wrote: >> >> >> On Saturday, May 26, 2012 4:45:13 PM UTC-4, Colin Law wrote: >>> >>> On 26 May 2012 21:39, Vell wrote: On Saturday, May 26, 2012 12:07:33 PM UTC-4, Colin Law wrote: > > On 25 M

Re: [Rails] gemlock and rails version

2012-05-25 Thread Jeremy Walker
On 26 May 2012 01:20, S Ahmed wrote: > Trying to understand how the version of rails is handled in the gem file, > if you do: > > gem "rails" > > and call bundle, it from what I understand will pull down the latest > stable release right? > > > And then a gemlock file is created, which will conta

Re: [Rails] Heroku Deploy - assets issue_paperclip

2012-05-24 Thread Jeremy Walker
On 24 May 2012, at 15:10, "Miguel A." wrote: > Hi all, I'm deploying my app on heroku for tests and have noticed > something odd. My understanding (and experience) is that you can't modify the heroku file system once your application slug has been generated and uploaded, so you'll need to us

Re: [Rails] loop in rails view

2012-05-22 Thread Jeremy Walker
On 22 May 2012 15:36, amvis wrote: > > > On Tuesday, 22 May 2012 10:23:53 UTC-4, Juan Pablo Avello wrote: >> >> >> >> El martes, 22 de mayo de 2012 15:56:54 UTC+2, amvis escribió: >>> >>> >>> >>> On Tuesday, 22 May 2012 09:34:20 UTC-4, azizmb.in wrote: Also, you could clean things a lit

Re: [Rails] Chain scopes with OR

2012-05-21 Thread Jeremy Walker
filling_id = 1) That might give you some ideas. It goes without saying that this is some hacky stuff you're getting into, so I'd tread carefully! Jeremy Walker http://www.ihid.co.uk > > Thanks for you attention, > Gustavo > > > On Fri, May 18, 2012 at 3:52 PM, azizmb

Re: [Rails] Error : can't dup NilClass, in Heroku

2012-05-21 Thread Jeremy Walker
On 21 May 2012, at 17:07, johan rincon wrote: > Hi, > The application is deployed on Heroku, is based on Ruby 3.2.1 and Rails > 1.9.2. Sometimes a function of my props starts throwing this error " > StringUtils:dateTimeFromString, str , can't dup NilClass" and I don't > understand th

Re: [Rails] i want a rails job

2012-05-21 Thread Jeremy Walker
Hello. England, Birmingham. On 21 May 2012 19:21, Lupu Alexandru Emil wrote: > What country? What city ? > > > On May 16, 2012, at 6:39 PM, Alex G wrote: > > hi, all > > i want a rails job, part time or remotely > > i have worked with rails for 4 years,i just want to learn english and do > not

Re: [Rails] Proxy Model Class

2012-05-18 Thread Jeremy Walker
On 19 May 2012 00:28, mengu wrote: > hello everyone, > > is it possible to instantiate a model class with it's id instead of > pulling it from the db? > SomeObject obj = SomeObject.new obj.id = 10 Is that what you mean? What's your use-case for this? > > thanks in advance. > > -- > You receiv

Re: [Rails] Re: Can't mass-assign these protected attributes?

2012-05-18 Thread Jeremy Walker
On 17 May 2012 22:56, David D. wrote: > I have found a solution to this problem (solution is geared for the > newest version of rails etc, as of mid May 2012) > > If you are simply doing early stage development stuff, you do not need > the extra feature which blocks mass assignment. The thing

Re: [Rails] How to crop and show external image with specific size?

2012-05-16 Thread Jeremy Walker
On 16 May 2012 21:20, regedarek wrote: > I get image url via API. It usualy have 360x200 but sometimes 233x350 etc.. > > I would like to crop them all to specific size 260x186. And show them > using > > <%= image_tag image_url if hotel.images.first %> > > I dont want to store this images. >

Re: [Rails] Re: How to display a string the way it was entered ( w return new line)

2012-05-16 Thread Jeremy Walker
and discovered there's a helper called simple_format that does exactly the same thing. > > On May 16, 5:47 pm, Jeremy Walker wrote: > > On 16 May 2012 16:25, Erwin wrote: > > > > > > > > > > > > > > > > > > > > > O

Re: [Rails] How to display a string the way it was entered ( w return new line)

2012-05-16 Thread Jeremy Walker
On 16 May 2012 16:25, Erwin wrote: > On input in a text area, the user can se the return key which generate > a \r\n inside the string > the address is stored per se the way it was keyed in .. > > @partner[:bank_location] > => "92, Place Honoré d'Urfé\r\n35140, La Chapelle-Saint-Aubert" > > Wh

Re: [Rails] Rails 3.1.0 cannot connect to sqlite database on Mac Lion

2012-05-16 Thread Jeremy Walker
On 16 May 2012 03:42, Scott Eisenberg wrote: > I'm running Rails 3.2.3 on Mac Lion with sqlite 3.7.7 and ruby 1.9.3p125. > I need to back down rails to 3.1.0 for a project but when I do that a > simple index page give me a ActiveRecord::ConnectionNotEstablished > error. > What does bundle exec

Re: [Rails] ajax issue with rails

2012-05-16 Thread Jeremy Walker
On 16 May 2012 11:55, amvis wrote: > $(".sub123").click(function() { > var mnum = $("#mnum").val(); > var dataString = 'value='+ mnum; > if(mnum=='') > { > $('.error').fadeIn(300).show(); > $('.error').fadeOut(3000); > > } > else > { > > $.ajax({ > type: "GET", > url: "http://localhost:3000/pages

Re: [Rails] Re: Help with model :conditions

2012-05-15 Thread Jeremy Walker
_to would probably be a better name than :redirect_to_page as the later sounds like an instruction not a name. Let me know how you get on. Jeremy Walker > On May 14, 1:22 pm, Jeremy Walker wrote: > > On 14 May 2012 18:16, Tuckie wrote: > > > > > Sadly, no dice: >

Re: [Rails] Re: Help with model :conditions

2012-05-14 Thread Jeremy Walker
ct_to_page_id instead of id? :conditions => proc {['redirect_to_page_id != ?', id]} I've checked this on a standard relationship without the class_name and foreign_key and it works perfectly. > On May 14, 10:23 am, Jeremy Walker wrote: > > On 14 May 2012 15:13, Tuckie w

Re: [Rails] Re: Help with model :conditions

2012-05-14 Thread Jeremy Walker
C6%91a8df27585ace3 Ok, yeah. You are right. That's a very old thread and I suspect this many have changed now. It was a very ugly workaround. You can now use a proc, so :conditions => proc {['id != ?', id]} Does that work for you? > > > > On May 14, 9:20 am, Jeremy W

Re: [Rails] Help with model :conditions

2012-05-14 Thread Jeremy Walker
longs_to :redirect_to_page, >:foreign_key => 'redirect_to_page_id', >:class_name => 'Page', >:conditions => 'id != #{self.id}' > Use double quotes, not single quotes around "id != #{self.id}" You might be better doing the follow

Re: [Rails] Re: How to "intercept" each action call?

2012-05-11 Thread Jeremy Walker
. > > Other example: If I have this action -> > > def create > respond_with(@task) > end > > the injector_to should do the hard work, instantiating the @task and > saving it. > > I think that I've explained better now. > > 2012/5/11 Jeremy

Re: [Rails] Re: How to "intercept" each action call?

2012-05-11 Thread Jeremy Walker
On 12 May 2012 01:48, Lauro Caetano wrote: > Thanks for your help Dheeraj, but I'm trying to do something like > Responders. > > Responders has a respond_to :html in controllers, that is used in each > action call to respond_with. > > The thing is: call a specific method that is located inside my

Re: [Rails] Is it suitable using STI?

2012-05-10 Thread Jeremy Walker
On 10 May 2012 16:26, Mauro wrote: > On 10 May 2012 17:05, Greg Akins wrote: > > > > > > On Thu, May 10, 2012 at 10:57 AM, Mauro wrote: > >> > >> I have problems on a simple design problem. > >> I have many companies. Each company have one or more commercial > activity. > >> Activities types ar

Re: [Rails] Is it suitable using STI?

2012-05-10 Thread Jeremy Walker
On 10 May 2012 16:05, Greg Akins wrote: > > > On Thu, May 10, 2012 at 10:57 AM, Mauro wrote: > >> I have problems on a simple design problem. >> I have many companies. Each company have one or more commercial activity. >> Activities types are: ecommerce, local unit, television, automatic >> vend

Re: [Rails] Rails 3.2.3 not including javascript

2012-05-10 Thread Jeremy Walker
On 10 May 2012 14:26, Beau wrote: > Howdy, > > Using rails 3.2.3 and ruby 2.0.0dev. Running rails s, doesn't seem to > include the javascript. This causes Delete/destroy to never work. It just > defaults to a GET and thus show. > > I tested this in a barebones project > > rails new testingjs > --

Re: [Rails] Re: select box pre-selecting an option

2012-05-10 Thread Jeremy Walker
On 10 May 2012 12:13, Michael Baldock wrote: > Thanks for that, it works exactly as you said! cheers, now I have the > line > > <%= f.select(:formation_csv, @formations) %> > > and it magically knows which one to select. > > I'm still v curios as to why the "options_for_select(formations_array, >

Re: [Rails] select box pre-selecting an option

2012-05-10 Thread Jeremy Walker
On 10 May 2012 11:45, Michael Baldock wrote: > Can anyone please tell me what's going on here, I've copied something > pretty much directly from rails guides, but it's just not doing what > it's supposed to! > > (Or I'm doing something stupid!) > > rails - 3.2.2 > ruby 1.9.3 > > my view has the f

Re: [Rails] Re: Re: Has_Many, another mass assign headache

2012-05-09 Thread Jeremy Walker
On 9 May 2012 17:15, Miguel A. wrote: > > Have you tried > > attr_accessible :hphoto > > rather than (or in addition to) > > attr_accessible :hphoto_attributes > > ? > > If i add to the Hphoto model: > attr_accessible :hphoto, :hphoto_attributes > the result is the same. > > > If I also add to th

Re: [Rails] Re: Has_Many, another mass assign headache

2012-05-09 Thread Jeremy Walker
On 9 May 2012 16:56, Miguel A. wrote: > > What's the actual error that you get? > > Can't mass-assign protected attributes: hphoto > app/controllers/hotels_controller.rb:52:in `new' > app/controllers/hotels_controller.rb:52:in `create' > Have you tried attr_accessible :hphoto rather than (or in

Re: [Rails] Has_Many, another mass assign headache

2012-05-09 Thread Jeremy Walker
On 9 May 2012 16:42, Miguel A. wrote: > I'm using rails 3.2.3 and am having issues with mass assignement. > > I have a Hotel model and a Hphoto model (integrated with paperclip) > > I have tried almost everything and still get mass-assignement error. > What's the actual error that you get? > >

Re: [Rails] Help Query Cache

2012-05-08 Thread Jeremy Walker
On 8 May 2012 19:22, Marcelo G. Silva wrote: > Well folks let me try to explain my problem. > I have a database of musics and each music can have multiple > artists through other table/model in the case Performers. > I would like to record music in new/edit add > artists and select them via a com

Re: [Rails] ActiveRecord Postgres small inconsistency

2012-05-07 Thread Jeremy Walker
On 7 May 2012 17:34, Jeremy Walker wrote: > > > On 7 May 2012 08:31, rahaji...@bankofbaku.com wrote: > >> Hi, I'm using Rails 3.2.1 and following through Mike Hartl's >> tutorial. >> >> irb(main):024:0> User.first >> User Load (0.6ms) SELE

Re: [Rails] ActiveRecord Postgres small inconsistency

2012-05-07 Thread Jeremy Walker
elying on an implementation detail that might later change? > This strikes me as a good suggestion. I'll put a pull request together for it unless anyone has any objections. Jeremy Walker http://www.ihid.co.uk > > Thanks. > > -- > You received this message because you are

Re: [Rails] Re: run script after initialize

2012-05-06 Thread Jeremy Walker
On 6 May 2012 22:13, Guillem Vidal wrote: > Jeremy Walker wrote in post #1059748: > > On 6 May 2012, at 20:22, Guillem Vidal wrote: > > > >> ActiveRecord::Base.send(:descendants) and > >> ActiveRecord::Base.send(:subclasses) is allways empty []. > >> &

Re: [Rails] run script after initialize

2012-05-06 Thread Jeremy Walker
eone tell me what i can do about it? > You could just reopen ActiveRecord::Base. Create a new initializer (a ruby file in config/initializers) with: class ActiveRecord::Base def new_method # do stuff end end Does that help? Jeremy Walker http://www.ihid.co.uk > Thanks! > > -

Re: [Rails] Use of Super or how to get the calling object.

2012-05-06 Thread Jeremy Walker
On 6 May 2012, at 04:29, Niklas Nson wrote: > Thank you for a great answer, i wanted to move it from the User model - but i > guess the smartest way is to keep it in there, also did the renaming to > update_setting ... > Again thank you! My pleasure! I understand not wanting the method on

Re: [Rails] Use of Super or how to get the calling object.

2012-05-05 Thread Jeremy Walker
relying on the set method being called on an association rather than itself. However, it most closes resembles your initial code, so I've included it as a possible solution. You might be able to go further and make it more sensible, but I think a method on user is better. Does any of that hel

Re: [Rails] inheritance with rails.

2012-05-03 Thread Jeremy Walker
On 3 May 2012 15:49, Mauro wrote: > On 3 May 2012 16:41, Jeremy Walker wrote: > > > > > > On 3 May 2012 15:28, Mauro wrote: > >> > >> Hello. > >> I've read about examples on inheritance with rails. > >> Here is an example: > &g

Re: [Rails] inheritance with rails.

2012-05-03 Thread Jeremy Walker
nly some classes use. IMHO this is not a nice solution. I have written the SuperSTI gem that I think offers a nicer solution. Read about it at http://www.ihid.co.uk/projects/super_sti and https://github.com/ihid/super_sti Feel free to email me personally to discuss it further. Jeremy Walker htt

Re: [Rails] Re: Country State City using AJAX

2012-05-03 Thread Jeremy Walker
country_id, function(data) { $("#client_state_id").replaceWith(data); } }); Hope that's helpful. > On Thu, May 3, 2012 at 7:02 PM, Jeremy Walker wrote: > >> >> >> On 3 May 2012, at 14:24, akshar jamgaonkar >> wrote: >> >> Yes i have a Select box with t

Re: [Rails] Re: Country State City using AJAX

2012-05-03 Thread Jeremy Walker
tion. > > On Thu, May 3, 2012 at 6:46 PM, Jeremy Walker wrote: > > > On 3 May 2012, at 14:06, AJ wrote: > > > Hello All, > > > > ill just summarize everything in this message..kindly suggest as to > > what might be wrong > > Do you

Re: [Rails] Re: Country State City using AJAX

2012-05-03 Thread Jeremy Walker
On 3 May 2012, at 14:06, AJ wrote: > Hello All, > > ill just summarize everything in this message..kindly suggest as to > what might be wrong Do you have a div with the id of "client_state_id"? What do you get if you run $("#client_state_id&q

Re: [Rails] haml and w3c validator

2012-05-03 Thread Jeremy Walker
On 3 May 2012 13:35, angel david wrote: > Hi All, > > > I have a doubt regarding haml and w3c validator. Is w3c validator > compatible for code written in haml? > > Because I have done a project full in haml and its the need that there > is no errors in w3c. But I have some errors which i think m

Re: [Rails] Can't push to Heroku

2012-05-03 Thread Jeremy Walker
mple: To use postgres instead of sqllite: https://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development https://devcenter.heroku.com/articles/local-postgresql To use sqllite in dev and postgres in production: http://railsapps.github.com/rails-heroku-tutorial.html Do those help? Jeremy Walker

Re: [Rails] Column with dynamic db type

2012-05-02 Thread Jeremy Walker
My repository at http://github.com/ihid/super_sti might help. Email me personally if you want some help with that repository. Jeremy Walker http://www.ihid.co.uk > > I would like to know if you have a better solution than this one: > > Question: > question:string >

Re: [Rails] Rails and the Ubuntu command line

2012-05-02 Thread Jeremy Walker
rails 3, in which case the command will work as expected, or use "rails depot" to create your app. You can then cd into the directory and run generate commands. Jeremy Walker > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rail

Re: [Rails] jruby/rack stack dumps without reference to my code

2012-05-02 Thread Jeremy Walker
g. Of course, it could be nothing to do with that! :) Jeremy Walker -- 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

Re: [Rails] Scaffoldings should be made in a temporary folder.

2012-05-02 Thread Jeremy Walker
sulting page. If that resulting page is complex, then don't generate scaffolding, just generate a resource. If the functionality is going to be along the lines of a form-based resource, then I've found that scaffolding can be a helpful start. Jeremy Walker http://www.ihid.co.uk -- You

[Rails] Railsberry meet-up

2012-04-13 Thread Jeremy del-Guidici
. Even if you are not attending I would be interested to connect with you somehow, either vis skype or phone preferably. I wanted to hear about your technical ideas, interests and ambitions to see if I could realise some of these through my plethora of contacts. Viele Grüße / Best Regards, Jeremy

[Rails] libtiff issues (newb)

2012-03-31 Thread Jeremy Blanchard
Hi all, I am a brand new user here so please accept my apologies if this has already been covered. I have searched extensively for the problem I'm having but cannot find a solution. Also, I am very new to Ruby on Rails. I played around with RoR back in 2008 but never fully got into it. I h

[Rails] Best Practices question

2011-12-23 Thread Jeremy Rottman
This post is a two part post, I apologize for the length. So far I have been able to wrap my brain around RoR fairly well. But this certain scenario, which I do plan to make use of quite a bit, has me a little stumped. Currently in my application I have a view setup named dashboard.html.erb. This

[Rails] Re: Problem with Asset Pipeline

2011-11-21 Thread Jeremy Woertink
Is it rails 3.1.1 or 3.1.2 ? Did you change the config.assets.prefix at all? Is there still a stylesheets folder in your public folder? I actually have no idea at this point, so I'm hoping to spark something that allows you to figure it out :) -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: uninitialized constant Sass::Script::Functions::EvaluationContext

2011-11-21 Thread Jeremy Woertink
did you already try config.gem 'sass-rails' ? -- 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 g

[Rails] Re: Understanding Asset Pipeline

2011-11-21 Thread Jeremy Woertink
hmm. Ok, in my app that I'm upgrading, I can't do require_tree . because of the 150 different stylesheets used currently. I should just be able to *= require jquery-ui1.8.13.custom, right? Now what about the whole thing of 3rd party stuff going into vendor/assets ? How do you deal with 3rd part

[Rails] Understanding Asset Pipeline

2011-11-21 Thread Jeremy Woertink
ok, so I'm doing an upgrade on a rails 2.3.2 app to 3.1, and I've noticed a lot of roadblocks with the asset pipeline. Luckily I've figured them all out, but I'm wondering how everyone else is solving these issues. Let's take a newly generated rails 3.1 app. I have a grid of squares I want to clic

[Rails] Re: Problem with Asset Pipeline

2011-11-21 Thread Jeremy Woertink
, ~Jeremy -- 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 rubyon

[Rails] Re: Rails 2 to 3 routes question

2011-08-31 Thread Jeremy Woertink
Tim Shaffer wrote in post #1019291: > Give this a whirl: > > resources :oker_training, :path => '/oker-training' wow... that worked, and I have no clue why I didn't try using path Thanks! Time to go clean up all of my routes files (yes, I have more than 1 >

[Rails] Rails 2 to 3 routes question

2011-08-30 Thread Jeremy Woertink
as => :oker_training, :controller => :oker_training. My routes file is now 30% larger than before :( Is there a cleaner way to write that? Jeremy (had to call it "oker" because it thought I was spamming. lol) -- Posted via http://www.ruby-forum.com/. -- You received this message beca

[Rails] Re: Re: Devise help!!

2011-05-16 Thread Jeremy Woertink
ds of stuff when a user is created. Is there a "best practices" way of using devise and doing that? Right now it's just doing @user = User.new(params[:user]) @user.save! if there a User.new_with_cool_devise_stuff(params[:user]) ?? Thanks ~Jeremy -- Posted via http://www.ruby-f

[Rails] Re: Devise help!!

2011-05-15 Thread Jeremy Woertink
ok, so more on this. I can say "I forgot my password", have the reset password email sent, and change the password. It will then log me in. If I click "logout", then "login" and use that password, it will fail. Here is my sessions controller: class SessionsController < Devise::SessionsControll

[Rails] Devise help!!

2011-05-15 Thread Jeremy Woertink
me issue with or without this. I have no restful_authentication code in the app anymore, and have no idea what else to do... Any ideas? Thanks, ~Jeremy -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

[Rails] Re: Calling render from a module

2011-02-22 Thread Jeremy Woertink
Frederick Cheung wrote in post #983169: > On Feb 21, 3:39am, Jeremy Woertink wrote: >> Same thing happens if I call the full path to that partial. > rspec should realise that the code under test is a helper is the spec > is in spec/helpers (and so should add the required st

[Rails] Re: Calling render from a module

2011-02-22 Thread Jeremy Woertink
d like to determine if the user is using haml, or erb, then render out a different partial depending. I'm also open to ideas of a better way to do this. Again, this is just a learning experience for me, so I would like to know the best way to go about doing this. Thanks! ~Jeremy --

[Rails] Calling render from a module

2011-02-20 Thread Jeremy Woertink
ll call the render method, but I get a Missing partial error. Same thing happens if I call the full path to that partial. My gem is structured like MyGem -lib --my_gem.rb -app --views ---shared _my_partial.html.erb -spec ... Thanks ~Jeremy -- Posted via http://www.ruby-forum.com/. --

[Rails] 3.0.4 change to chained where methods. Documentation?

2011-02-14 Thread Jeremy
I've noticed a rather insidious 3.0.4 change to the way that chained where methods that reference the same attribute are handled. Does anyone know where I can find more information about where/when this change came in, and the justification for it? I haven't been able to find a changelog mentioni

[Rails] [ANN] MagicRuby is nearly full and group room rate ends TODAY!

2011-01-03 Thread Jeremy McAnally
reservations in! Hope to see you in February! --Jeremy and the rest of the MagicRuby folks -- http://jeremymcanally.com/ - http://intridea.com/ Bowties, ties, and more: http://wickhamhousebrand.com My books: http://r3uh.com http://rbip.info/ http://hlrb.org (FREE!) -- You received this mess

[Rails] Encoding Help!

2010-12-27 Thread Jeremy Woertink
e DB so they are displayed exactly how they are in the file? Bonus Question: In case anyone knows The CSV file is being created with Microsoft Excel. Is there a way to save the file as UTF-8 so I can just move on with my life? :) Thanks for the help, ~Jeremy -- Posted via http://www.ruby-

[Rails] Re: how to redirect to ERROR page /500.html in rails

2010-12-02 Thread Jeremy Woertink
I don't remember how the rendering was in Rails 2.2.2, but this is how I'm doing it in my Rails 2.3.5+ apps render :file => File.join(Rails.root, 'public', '500.html' You might need :layout => false ~Jeremy -- Posted via http://www.ruby-forum.com/. -- Y

[Rails] Help understanding ActiveResource

2010-12-02 Thread Jeremy Woertink
. The docs say Post.collection_path #=> /posts.xml Comment.collection_path(:post_id => 5) #=> /posts/5/comments.xml Here is what I'm getting Post.collection_path => /posts.xml Comment.collection_path(:post_id => 5) #=> /comments.xml?post_id=5 I'm using Rails 3.0.1.

[Rails] Re: rails 3 meta_search usage

2010-11-30 Thread Jeremy Woertink
I've never actually heard of either of those, but is there something different that User.name_equals("blah") gives you that you can't get with User.where(:name => 'blah') ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Rails 3 & FasterCSV

2010-11-29 Thread Jeremy Woertink
herwise it just throws a FasterCSV::MalformedCSVError. jeremy-woertinks-imac:winovations jeremywoertink$ file -I ~/Downloads/example.csv /Users/jeremywoertink/Downloads/example.csv: text/plain; charset=iso-8859-1 I'm using jeremy-woertinks-imac:winovations jeremywoertink$ ruby -v ruby 1.

[Rails] Re: Issue using bundler

2010-11-22 Thread Jeremy Woertink
> Does the above mean you are trying to use rails 3.0.1 with ruby 1.8.7? > If so there is the problem. > >> /Library/Ruby/Site/1.8/rubygems/installer.rb:164:in `install': >> activesupport requires Ruby version >= 1.8.7. (Gem::InstallError) > > That says you need a later ruby for activesupport 3 I

[Rails] Issue using bundler

2010-11-22 Thread Jeremy Woertink
I run bundle install, or bundle update, and it fails. I'm using RVM, so if I switch to Ruby 1.9.2, this works fine, but using Ruby 1.8.7 it fails. Any idea? jeremy-woertinks-imac:winovations jeremywoertink$ bundle update Fetching source index for http://rubygems.org/ Using rake (0.8.7)

[Rails] Re: Re: Using production DB data locally

2010-11-18 Thread Jeremy Woertink
> Read up on mysqldump. > > -philip Awesome, that would be what I'm looking for. Thanks man! -- 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-t..

  1   2   3   >