Re: [Rails] How do I run an action on a dedicated thread?

2019-08-08 Thread Eric Jesse Knutsen
San, I hope you know I meant no offense. This is a strange issue to have and is normally indicative of an architectural design flaw and without having more details that might violate your nda, we can only go based on facts entered into evidence, to borrow a phase from legal. An application can be

Re: [Rails] How do I run an action on a dedicated thread?

2019-08-08 Thread Eric Jesse Knutsen
hmm... It sounds like you might want to isolate this into a micro-service then. Honestly, and architecturally, it sounds like this process flow might need a redesign, especially as it relies on a resource external to the main application. I am guessing that this is legacy? Is this application

Re: [Rails] How do I run an action on a dedicated thread?

2019-08-08 Thread Eric Jesse Knutsen
It sounds like this might be best served by encapsulating the caller in a job and then setting up a dedicated queue for that job in your background processes, if I am understanding correctly what this is. If you need to have the results display when complete then you could set up a poller or a

RE: [Rails] Heroku and Javascript

2018-07-25 Thread Eric Jesse Knutsen
Anything in browser javascript console? Is anything not being served properly? And, dumb question time but we all have these kind of moments, did you remember to precompile, and are all your JS libraries set to have pointers to the compiled locations of assets? Cheers, Jess From: David

[Rails] Re: Yet another "convert ruby script into a portable executable" tool

2017-10-08 Thread Jesse Zink
I'd be interested in using this, but the fact that you made it require Ruby version 2.2.2 is a downfall, as I use 2.3.1 How might I make this work with 2.3.1? On Monday, September 26, 2016 at 3:21:43 PM UTC-5, Daniel Loureiro wrote: > > Hi guys, > > I was struggling to find a tool to convert

Re: [Rails] Re: Hash mapping

2016-02-04 Thread Jesse Knutsen
On 2/4/16 11:30 AM, John Sanderbeck wrote: I am trying to make this as efficient as possible which is why I was trying to do the group call. I was doing it in the Highchart definition which worked however it does many queries depending on how many initiatives there are. series: [{ name:

Re: [Rails] Background stripes not seen in my web application.

2015-07-24 Thread Jesse Knutsen
Are you cycling the class of the tr or div that you are using to house the data? Also did you remember to define the classes in your css? On 7/24/15 3:42 PM, Bruce Howard wrote: I am learning Ruby on Rails using the textbook called Agile Web Development with Rails (4th edition). I am currently

Re: [Rails] Design question: Redirection to a create action.

2014-06-04 Thread Jesse Knutsen
I am not a huge fan of an approach that would need to redirect in this way. Instead, why not create a new class called login or something like that. To see a possible usage checkout the following article http://matthewrobertson.org/blog/2012/09/20/decoupling-rails-forms-from-the-database/ You

Re: [Rails] Re: Design question: Redirection to a create action.

2014-06-04 Thread Jesse Knutsen
On 6/4/14, 10:08 AM, Ronald Fischer wrote: Jesse Knutsen wrote in post #1148805: I am not a huge fan of an approach that would need to redirect in this way. Instead, why not create a new class called login or something like that. You will need to adapt a bit to your needs, but the basics

Re: [Rails] Re: Design question: Redirection to a create action.

2014-06-04 Thread Jesse Knutsen
On 6/4/14, 10:30 AM, Colin Law wrote: On 4 June 2014 15:25, Jesse Knutsen draco...@gmail.com wrote: Essentially you are calling two different actions right now (in your design) where the first leads to the second through a redirect. This redirect will actually redirect the user on the browser

Re: [Rails] Re: Re: Design question: Redirection to a create action.

2014-06-04 Thread Jesse Knutsen
On 6/4/14, 1:19 PM, Ronald Fischer wrote: Jesse Knutsen wrote in post #1148818: On 6/4/14, 10:30 AM, Colin Law wrote: You are 100% correct, but he was going to redirect to Dicts#new. Only as a work-around, but as I said, I was not so happy with this either. DictController

Re: [Rails] Re: Re: Design question: Redirection to a create action.

2014-06-04 Thread Jesse Knutsen
On 6/4/14, 1:38 PM, Ronald Fischer wrote: Jesse Knutsen wrote in post #1148812: On 6/4/14, 10:08 AM, Ronald Fischer wrote: Essentially you are calling two different actions right now (in your design) where the first leads to the second through a redirect. This redirect will actually redirect

Re: [Rails] SPECIALS RELATIONSHIP!?

2014-05-28 Thread Jesse Knutsen
does each hall have to be specifically designated as hallx? and do halls exist independently of spectacle? Assuming that halls exist independently, it sounds like having a join table and position attributes on the join should work spectacle has_many :halls spectacle_hall_join

Re: [Rails] Recover select value

2014-05-28 Thread Jesse Knutsen
have you tried accessing through params[:nomdefaut] On 5/28/14, 10:55 AM, Fab Forestier wrote: I have in my view a select td%= select :nomdefaut, @mydefaut, @ndefaut%/td I see the different values of @ndefaut but then but then @mydefaut is supposed to contain the selected value in the list but

[Rails] Rack::SSL

2013-01-09 Thread Jesse Knutsen
Hey All, I have set up our site for https only using rack::ssl. I also used it to secure our app's cookies. # Enable SSL with secure cookies config.middleware.insert_before ActionDispatch::Cookies, Rack::SSL however, there is one cookie that is set by a browser technology that we will be

Re: [Rails] RVM

2011-10-25 Thread Jesse Cravens
. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. -- Jesse Cravens jessecravens.com m. 210.392.1542 -- You received this message because you

[Rails] Questions on scopes

2011-09-13 Thread Jesse
: if message.read_at == nil NEW end and that works fine. however even scope :unread, where(read_at == ?, nil ) does not seem to want to work. I know I must be missing something terribly obvious about this. Any kick in the right direction is appreciated. Thanks Jesse -- You received

Re: [Rails] Re: Questions on scopes

2011-09-13 Thread Jesse
terribly obvious about this. Any kick in the right direction is appreciated. Thanks Jesse -- 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

Re: [Rails] Re: Questions on scopes

2011-09-13 Thread Jesse
On 9/13/11 1:04 PM, Frederick Cheung wrote: On Sep 13, 5:51 pm, Jessedraco...@gmail.com wrote: On 9/13/11 12:39 PM, Frederick Cheung wrote: When comparing with nil you have to use IS NULL rather than the usual comparison operator. where(:read_at =nil) should work though. How are you using

Re: [Rails] model association question

2011-09-13 Thread Jesse
with a limit of 2 children and then scopes on the bar model to make up the difference. Jesse -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group

Re: [Rails] model association question

2011-09-13 Thread Jesse
On 9/13/11 5:17 PM, Randy Regnier wrote: On 09/13/2011 03:34 PM, Jesse wrote: On 9/13/11 1:22 PM, Randy Regnier wrote: I have a question about how best to model a pair of properties/attributes in Rails3. The generic models are: class Foo ActiveRecord::Base end class Bar ActiveRecord::Base

[Rails] Re: Strange rake error with config.cache_classes

2011-08-12 Thread Jesse S.
I've run into a similar issue where a variable contained nil when it should always be an array (the controller ensures this, the view is where the error was raised.) Anyways, setting config.eager_load_paths = false appears to fix the issue which only occurs when config.cache_classes = true. It

[Rails] Re: Re: Re: Rails 3 Routing: Namespace'd Controllers?

2011-03-03 Thread Jesse S.
Stefan Buhr wrote in post #897683: Conrad Taylor wrote: Sent from my iPhone Please post the Rails 2.x route that you would like to convert to Rails 3.0? Hey Conrad, I think I made a mistake. I was under the impression that following code in rails 2 map.namespace :admin do |admin|

Re: [Rails] Re: Redirect and passing params?

2010-12-15 Thread Jesse
On 12/15/10 12:40 PM, Finne Jager wrote: Just another quick question if you don't mind. I'm trying to manually append a SafetyOfficer to the Timesheet with the Rails console: Incident.first.timesheet.safety_officer SafetyOfficer.last This is pulling just the first record found of incident so

Re: [Rails] Re: Re: Redirect and passing params?

2010-12-15 Thread Jesse
On 12/15/10 1:19 PM, Finne Jager wrote: Jesse wrote in post #968644: On 12/15/10 12:40 PM, Finne Jager wrote: Just another quick question if you don't mind. I'm trying to manually append a SafetyOfficer to the Timesheet with the Rails console: Incident.first.timesheet.safety_officer

Re: [Rails] Re: Re: Re: Redirect and passing params?

2010-12-15 Thread Jesse
On 12/15/10 1:27 PM, Finne Jager wrote: Jesse wrote in post #968651: On 12/15/10 1:19 PM, Finne Jager wrote: object of security_officer. You need to have an array for this as you has_one :safety_officer Are your associations the same for FireFighter and SafteyOfficer? Timesheet

[Rails] Setting timestamps manually (not working)

2010-11-10 Thread Jesse Crockett
I'm trying to set the timestamps manually. Can't get it to do anything but set it to the current time when it saves. Please help. (it's on heroku) desc restore timestamps for updated_at in questions task restore_timestamps do require 'time' require File.dirname(RAILS_ROOT) +

[Rails] Two writing sites up for adoption

2010-10-16 Thread Jesse Crockett
http://voteforpoetry.com and http://voteforstories.com Good for someone interested in online writing competitions. Adsense income is less than $10/mo, and the poetry site is large enough to require the base package at heroku.com ($15/mo). Please contact me if interested. crockett.jesse ~

Re: [Rails] Re: many to many relations

2010-07-19 Thread Jesse
Why don't you just make both fields plain text attributes of the author object? On 7/19/10 5:53 PM, Frederick Cheung wrote: On Jul 19, 9:59 pm, Solidifymax.holtm...@gmail.com wrote: Hi everyone, I have a simple question: an author has a place of birth and a place of death. Both places

[Rails] How to get a join query to work?

2010-06-30 Thread Jesse Crockett
Award.all(:joins = INNER JOIN overall_rankings ON (overall_rankings.poem_id = awards.poem_id)) gets the wrong award.overall_ranking on heroku postgres Poem has_many :awards has_one :overall_ranking Award belongs_to :poem has_one :overall_ranking, :foreign_key = :poem_id OverallRanking

[Rails] Re: How to get a join query to work?

2010-06-30 Thread Jesse Crockett
Jesse Crockett wrote: Award.all(:joins = INNER JOIN overall_rankings ON (overall_rankings.poem_id = awards.poem_id)) gets the wrong award.overall_ranking on heroku postgres Poem has_many :awards has_one :overall_ranking Award belongs_to :poem has_one :overall_ranking

[Rails] Rails and Cassandra

2010-06-21 Thread Jesse
with thrift and what not. We are also having issues determining exactly how to get up and run with it for experimentation. Any help/opinions/advice would be be appreciated. Regards, Jesse -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Re: Ahhh .count!

2010-05-12 Thread Jesse
Hi All, I am trying to do something similar and am running into an issue on it I have a setup where Portal has many Programs program has many users through program_memberships user has many portals through program_memberships I am trying to get it so that portal has many users through programs

Re: [Rails] Re: Ahhh .count!

2010-05-12 Thread Jesse
Sure thing: class Portal ActiveRecord::Base has_many :programs has_many :users, :through = :programs end class Program ActiveRecord::Base belongs_to :portal has_many :program_memberships, :dependent = :destroy has_many :users, :through = :program_memberships end class

Re: [Rails] Re: Ahhh .count!

2010-05-12 Thread Jesse
On 5/12/10 6:08 PM, Rick DeNatale wrote: On Wed, May 12, 2010 at 4:47 PM, Jessedraco...@gmail.com wrote: Sure thing: class Portal ActiveRecord::Base has_many :users, :through = :programs end class Program ActiveRecord::Base has_many :users, :through = :program_memberships end

[Rails] Git Issue

2010-05-06 Thread Jesse
Hi All, This is not specifically a Rails question, but I figure that someone here might know enough about git to help me. Here is the situation. I had set up a private Git Repo server for my companies projects. For testing I did everything as root. Now that I am ready to allow

[Rails] Re: How do we create functional test when the model has association

2009-11-22 Thread Jesse
is it possible the form is passing the project_id parameter to the controller as something else? maybe as project ? submit the form from a browser and look at the development.log file and see what the HTTP request looks like, my guess is something like Processing SprintsController#create (for

[Rails] Transaction blocks and rollbacks

2009-09-13 Thread Jesse Crockett
Hello, I'm beginning to test a payment method, here is an abbreviated form. How can I rollback and redo the transaction if any of the save calls fail? def process_payment! # class Payment transaction do success = true user.blitz_interest = true user.points += 1

[Rails] Canadian Centre for Architecture uses Rails!

2009-09-01 Thread Jesse Sutherland
Heyo folks, the new site for the CCA has been up for the past month or so and we (Bluesponge) are pretty proud of it: http://cca.qc.ca We spent a lot of time on this site and used a lot of different technologies to make it happen, including EXT JS, Liquid etc. The CMS is a sweet app (which

[Rails] [ANN] Moonshine: Rails deployment and configuration management done right

2009-03-19 Thread Jesse Newland
of thing, you've gotta check out Moonshine. Cheers - Jesse --- Jesse Newland jnewl...@gmail.com http://jnewland.com/ http://twitter.com/jnewland --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Force ERB templates to prevent making changes to models?

2008-11-05 Thread Jesse Proudman
the best way to do this? I'm assuming there are other ERB command I can use to render, but I can't seem to find it. Thanks - Jesse -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: ActionMailer::Base send via secure connection?

2008-09-25 Thread Jesse
http://www.rubyinside.com/how-to-use-gmails-smtp-server-with-rails-394.html This is a good solution. --~--~-~--~~~---~--~~ 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