[Rails] Re: help me . have to do a project in less span of time

2017-02-01 Thread Joe Guerra
You should fork an existing project(s) from github, and combine them. On Wednesday, February 1, 2017 at 7:18:29 AM UTC-5, kranthi ramireddy wrote: > > THE ACTUAL PROJECT IMPLEMENTATION: The project implementation will be done > with all necessary features included along with security aspects.

Re: [Rails] local sqlite development vs Heroku PG deployment

2017-02-01 Thread Joe Guerra
tried the same migration on heroku it didn't change the table column name. I used pgadmin 4 to alter the postgres table column name. Thanks, Joe On Wednesday, February 1, 2017 at 6:25:24 PM UTC-5, Walter Lee Davis wrote: > > > On Jan 31, 2017, at 10:55 PM, Joe Guerra <jgu...@j

Re: [Rails] can CSS do the following?

2017-02-03 Thread Joe Guerra
Yes it can, I answered my own question. I found a nice gallery layout, much better than the layout I had been using. On Fri, Feb 3, 2017 at 10:57 PM, Joe Guerra <jgue...@jginfosys.com> wrote: > Just curious if CSS styling can take a record that is displayed in one > line (one record

[Rails] how do you pass paramters from a button in rails?

2017-02-03 Thread Joe Guerra
I have the following code in my show.html.erb file, it calls the right method (or path). I am unsure how to pass variables from my product show.html.etb to my actual method... <%= button_to 'Add to Cart', add_to_cart_path, method: :post %> I need to pass the product id, and possibly

[Rails] can CSS do the following?

2017-02-03 Thread Joe Guerra
Just curious if CSS styling can take a record that is displayed in one line (one record), and put 3 records on a single line (in columns) without any additional ruby coding or formatting (except for CSS). Thanks, Joe -- You received this message because you are subscribed to the Google Groups

[Rails] local sqlite development vs Heroku PG deployment

2017-01-31 Thread Joe Guerra
This is driving me crazy. I have my web app working great in development, then I commit and push it to Github and heroku automatically deploys my app. Unfortunately, it doesn't quite work out the same as the development. Pages aren't being found on production, but they are there in

[Rails] Re: local sqlite development vs Heroku PG deployment

2017-01-31 Thread Joe Guerra
s a column in my database table, I don't know where it coming up with 'startdate' does not exist? I don't have that in any of my references. Thanks, Joe On Tuesday, January 31, 2017 at 10:24:13 PM UTC-5, Joe Guerra wrote: > > This is driving me crazy. I have my web app working g

Re: [Rails] admin user / devise

2017-01-31 Thread Joe Guerra
> to the actual signed in user. > … > end > Otherwise, > @user. == “admin” #(or whatever you use) > > cheers, > Bill > > On Jan 30, 2017, at 4:48 PM, Joe Guerra <jgu...@jginfosys.com > > wrote: > > I know there is a current_user method for devise, but

[Rails] auto session gem / auto session warning gem?

2017-02-06 Thread Joe Guerra
Has anyone used these two gems in their web app? I added them to my gem file, and did a bundle install. I was trying to find out where it stuck the javascript files. Anyways, I set it to expire within 10 minutes, no luck yet. I have the following in my application.js file... //= require

Re: [Rails] Going through /getting_started.html — stuck on step 5.10 "Validation" and "render 'new'"

2017-02-05 Thread Joe Guerra
Take a look at your article.rb file. You have validations in it that prevent you from writing data to your table (unless you meet those conditions). On Feb 5, 2017 4:34 AM, "nanaya" wrote: > Hi, > > On Sun, Feb 5, 2017, at 06:18, Denis K wrote: > > Hi, > > > > I'm new to

[Rails] Re: filter dates from where clause

2017-01-30 Thread Joe Guerra
hem into a single scope if you can produce a term that > accurately describes products that are in that exact state. > > On Sunday, January 29, 2017 at 1:29:03 PM UTC-5, Joe Guerra wrote: >> >> I'm trying to figure out how to compare my enddate > Time.now in my where >>

[Rails] admin user / devise

2017-01-30 Thread Joe Guerra
I know there is a current_user method for devise, but how do you check if the user is admin? (I've got a user flagged as admin). I have a admin menu that I'd like to enable / disable when admin is logged in. Thanks, Joe -- You received this message because you are subscribed to the

[Rails] printing ruby on rails project files from rubymine?

2017-01-30 Thread Joe Guerra
Does any know if there is a quick method to doing this? I'd like to print out my project on paper, and make some notes. Thanks, Joe -- 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

[Rails] Re: admin user / devise

2017-01-30 Thread Joe Guerra
Yes, lol. That easy. I'll try it. On Monday, January 30, 2017 at 4:48:21 PM UTC-5, Joe Guerra wrote: > > I know there is a current_user method for devise, but how do you check if > the user is admin? (I've got a user flagged as admin). > > I have a admin menu that I'd like to e

[Rails] filter dates from where clause

2017-01-29 Thread Joe Guerra
I'm trying to figure out how to compare my enddate > Time.now in my where clause. enddate is a date field, I'm just trying to only display products that haven't expired (by the date field). I've tried... require 'time' products.where(['enddate > ?', Time.now]) -- You received this

[Rails] Re: filter dates from where clause

2017-01-29 Thread Joe Guerra
On Sunday, January 29, 2017 at 1:29:03 PM UTC-5, Joe Guerra wrote: > > I'm trying to figure out how to compare my enddate > Time.now in my where > clause. > > enddate is a date field, I'm just trying to only display products that > haven't expired (by the date fie

Re: [Rails] getting values from another table...

2017-02-09 Thread Joe Guerra
lt;% end %> On Thursday, February 9, 2017 at 4:04:25 PM UTC-5, Colin Law wrote: > > On 9 February 2017 at 17:49, Joe Guerra <jgu...@jginfosys.com > > wrote: > > I've got a simple cart table with a link to a product id. > > > > I'd like to grab the values fr

Re: [Rails] getting values from another table...

2017-02-10 Thread Joe Guerra
I"m building a basic cart system, one item per cart. I'm still trying to learn ruby on rails. Thanks, Jo On Thursday, February 9, 2017 at 10:44:09 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Feb 9, 2017 at 5:55 PM, Joe Guerra <jgu...@jginfosys.com > > wrote: > &

Re: [Rails] ruby embedded conditionals

2017-02-09 Thread Joe Guerra
It is a boolean value, I did get it to work. On Thursday, February 9, 2017 at 12:30:31 PM UTC-5, Colin Law wrote: > > On 9 February 2017 at 17:10, Joe Guerra <jgu...@jginfosys.com > > wrote: > > I can't get my embedded if statement working in a html table. > >

[Rails] ruby embedded conditionals

2017-02-09 Thread Joe Guerra
I can't get my embedded if statement working in a html table. here's one row of my table from my cart index... <%= cart.created_at.strftime("%m/%d/%Y")%> | <%= cart.product_id %> | <% if cart.processing == 'true'%> <%= Processing order %> <% end %> basically I want to indicate when

[Rails] getting values from another table...

2017-02-09 Thread Joe Guerra
I've got a simple cart table with a link to a product id. I'd like to grab the values from the product table that match the product id in the cart, but I'm looping thru the cart in an index view. So, I wasn't quite sure how to accomplish this. any suggestions? Thanks, Joe -- You received

[Rails] Re: button_to (passing paramters again)

2017-02-16 Thread Joe Guerra
ct_id"] > user_id = session["user_id"] > @cart = Cart.new(user_id, product_id) > ... > end > > On Wednesday, February 15, 2017 at 5:11:02 PM UTC-7, Joe Guerra wrote: >> >> I am pretty close to figuring this out... >> >> I've got this

[Rails] button_to (passing paramters again)

2017-02-15 Thread Joe Guerra
I am pretty close to figuring this out... I've got this in my product show pageI'm trying to pass user_id & product_id to my products controller, add_to_cart method... <%= button_to 'Add to Cart', {:controller => "products", :action => "add_to_cart", :user_id=> session[:user_id],

[Rails] Re: respond_to for custom form submissions

2017-02-28 Thread Joe Guerra
I think you can use :back. redirect_to :back On Friday, February 24, 2017 at 1:10:31 PM UTC-5, fugee ohu wrote: > > my controller is user_posts_controller.rb > it's views are in /app/views/user/posts > > when a form submission fails to save the object i wanna redirect back to > the custom

Re: [Rails] button_to (passing paramters again)

2017-02-28 Thread Joe Guerra
> On Feb 16, 2017, at 9:27 AM, Joe Guerra <jgu...@jginfosys.com > > wrote: > > > > ok, still confused > > I've defined my parms like this... > > > > def cart_params > > # params.fetch(:cart, {}) > > params.re

[Rails] Re: Where to learn more?

2017-02-28 Thread Joe Guerra
Join an open source project. Or create your own rails app. You'll learn way more by doing than by reading about it. On Tuesday, February 28, 2017 at 3:34:57 PM UTC-5, Andres Coppola wrote: > > Hello everyone, I'm new at this group and i'm very glad I found it. My > name is Andres, and I

Re: [Rails] associations - one to many

2016-10-04 Thread Joe Guerra
uggest you: >> >>1. add category_id to your list of permitted product params >>2. introduce validations in the product model to guard against >>missing values >> >> >> >> >> >> >> On Fri, Sep 30, 2016 at 4:43 PM, Joe Guer

Re: [Rails] associations - one to many

2016-09-30 Thread Joe Guerra
controller edit action >> >> On 30 Sep 2016 4:03 p.m., "Joe Guerra" <jgu...@jginfosys.com >> > wrote: >> >>> Ok, here is my edit products page... >>> >>> <% if user_signed_in? %> >>> >>> Edi

Re: [Rails] associations - one to many

2016-09-30 Thread Joe Guerra
f.input :template %> <%= f.input :price %> <%= f.input :msrp %> <%= f.input :enddate %> <%= f.input :draft %> <%= f.button :submit %> <% end %> On Friday, September 30, 2016 at 10:58:34 AM UTC-4, mode-x wrote: > > Y

[Rails] associations - one to many

2016-09-30 Thread Joe Guerra
I've got two tables in my Postgres database: categories and products. I have a one to many relationship defined, one category can have many products. I then created a reference and migrated the tables. AddCategoryRefToProducts category:references I have this in my models. #product.rb

[Rails] Re: How to Get Started with Ruby on Rails?

2016-09-30 Thread Joe Guerra
The easiest way is to sign up for a free account on c9.io. You get 2 workspaces and everything is configured for you to start working on ruby on rails projects. (and you can access it anywhere.) Try some free udemy rails courses. On Thursday, August 25, 2016 at 12:46:26 PM UTC-4, Faraz Mirza

Re: [Rails] Ruby on Rails Developer role Minneapolis NO H1 or Third Parties- Direct hire

2016-11-04 Thread Joe Guerra
no,i have a few momths of ror. On Fri, Nov 4, 2016 at 11:46 AM, Jennifer Simpson Black wrote: > Looking for a Ruby on Rails Developer in Minneapolis > > *Direct hire role No h1 or Third Parties- DO NOT ADD ME TO YOUR EMAIL LIST > I never USE H1s.* > Will be working onsite

[Rails] open source projects?

2016-10-21 Thread Joe Guerra
Does anyone have an open source ROR project? I'd like to contribute. Thanks, Joe -- 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

Re: [Rails] associations - one to many

2016-10-21 Thread Joe Guerra
ry_id) > > On Tuesday, October 4, 2016 at 3:15:26 PM UTC-4, Joe Guerra wrote: >> >> Still unsure of what to do... this is my migration to add category {id} >> to my products table >> >> class AddCategoryRefToProducts < ActiveRecord::Migration >> def change &

Re: [Rails] open source projects?

2016-10-21 Thread Joe Guerra
Thanks, I knew that. On Fri, Oct 21, 2016 at 4:49 PM, Colin Law <clan...@gmail.com> wrote: > On 21 October 2016 at 19:23, Joe Guerra <jgue...@jginfosys.com> wrote: > >> Does anyone have an open source ROR project? >> > > Google for > open source

[Rails] Re: Consolidated logging

2016-11-23 Thread Joe Guerra
try this? https://newrelic.com/ruby On Tuesday, November 22, 2016 at 12:35:32 PM UTC-5, Hassan Schroeder wrote: > > I'm looking for recommendations on consolidating Rails logs from > multiple servers[*] into one. > > [*] AWS EC2 instances running Ubuntu 16.04 + Ruby 2.3.x/Rails 5 > > Bonus

Re: [Rails] button_to question

2016-11-15 Thread Joe Guerra
ok, it's looking for a view at that route (or path), but my method says to render a partial file (modal dialog page). Hmmm, did I miss something? On Tuesday, November 15, 2016 at 2:35:31 AM UTC-5, Colin Law wrote: > > On 14 November 2016 at 23:17, Joe Guerra <jgu...@jginfosys.com

Re: [Rails] button_to question

2016-11-15 Thread Joe Guerra
OK, maybe I just need to see an example of how to call a method from a button-to button. On Nov 16, 2016 1:22 AM, "Colin Law" <clan...@gmail.com> wrote: > On 15 November 2016 at 16:55, Joe Guerra <jgue...@jginfosys.com> wrote: > >> ok, it's looking for a vi

[Rails] button_to question

2016-11-14 Thread Joe Guerra
Hi, I'm trying to run a method in one of my controllers using a button_to command. How is this accomplished? So far, I've got <%= button_to "Add to Cart", action: "add_to_cart" %> in my products page I defined a add_to_cart in my product controller, and created a route for it. Am I on

Re: [Rails] Ruby on Rails or Ember.js with Rails API

2017-03-22 Thread Joe Guerra
Wow. Very nice. My rails app looks ugly. On Mar 22, 2017 3:03 PM, "fabrizio bertoglio" wrote: > Hello Experts, > > I have been developing with Ruby on Rails for 4 months and I just finished > my first app (the link below). > For my next app I thought about using

[Rails] Re: i need a web developer

2017-03-31 Thread Joe Guerra
I'd like to help out. On Friday, March 31, 2017 at 8:50:39 AM UTC-4, tariq khan wrote: > > i need a web developer working on Ruby on Rails or Node.Js > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group

Re: [Rails] Re: sql help

2017-04-14 Thread Joe Guerra
Thanks. This worked. On Friday, April 14, 2017 at 12:59:08 PM UTC-4, nanaya wrote: > > Hi, > > On Sat, Apr 15, 2017, at 01:50, Joe Guerra wrote: > > ok, I've got it working but... > > > > <%= Product.where( ['id =?', iu.product_id ]).pluck("title"

[Rails] sql help

2017-04-14 Thread Joe Guerra
I need to return a product title from an id. I've tried the following... <%= Product.where( ['id =?', iu.product_id ]).select('title') %> but it gives me a reference... # I've tried a number of things. Any hints? Thanks, Joe -- You received this message because you are subscribed

Re: [Rails] show method variable

2017-03-03 Thread Joe Guerra
remaining was defined in my show section. It's not running in this cart method when the condition is met. I can try outputting the value, and see what I get. On Thursday, March 2, 2017 at 11:15:20 AM UTC-5, tamouse wrote: > > > > On Thu, Mar 2, 2017 at 10:07 AM Joe Guerra

Re: [Rails] show method variable

2017-03-03 Thread Joe Guerra
ok, i used pry.binding to look at the @remining variable and it's nil. that why it's not working.so the question is why is this the case when it has a value in the show section? On Friday, March 3, 2017 at 12:34:01 PM UTC-5, Joe Guerra wrote: > > ok, I added this piece o

Re: [Rails] show method variable

2017-03-02 Thread Joe Guerra
ok good. yes, I will call it from within that same controller.. Now I've got to figure out how to run an update query. On Thursday, March 2, 2017 at 11:15:20 AM UTC-5, tamouse wrote: > > > > On Thu, Mar 2, 2017 at 10:07 AM Joe Guerra <jgu...@jginfosys.com > > wrote: &

Re: [Rails] show method variable

2017-03-03 Thread Joe Guerra
Ok, how do I deal with that? On Friday, March 3, 2017 at 1:21:17 PM UTC-5, Colin Law wrote: > > On 3 March 2017 at 17:51, Joe Guerra <jgu...@jginfosys.com > > wrote: > > ok, i used pry.binding to look at the @remining variable and it's nil. > > > >

Re: [Rails] show method variable

2017-03-03 Thread Joe Guerra
March 2017 at 22:03, Joe Guerra <jgu...@jginfosys.com > > wrote: > > Ok, how do I deal with that? > > You have to recalculate the variable in each method that you need it. > > Colin > -- You received this message because you are subscribed to the Google

Re: [Rails] show method variable

2017-03-04 Thread Joe Guerra
remaining is. Thanks, Joe On Saturday, March 4, 2017 at 3:18:11 AM UTC-5, Colin Law wrote: > > On 3 March 2017 at 22:39, Joe Guerra <jgu...@jginfosys.com > > wrote: > > ok, I thought about that. Would it be ok to like set the instant > variable > > to a global and

[Rails] Re: show method variable

2017-03-05 Thread Joe Guerra
C-5, Joe Guerra wrote: > > In my show method for my products controller I've got a variable that > track qty ( @remaining ). > > Can I access this variable from another method within the same controller? > > Thanks, > Joe > -- You received this message because you are s

Re: [Rails] show method variable

2017-03-05 Thread Joe Guerra
an instance variable in your specific > controller method and this should work out for you. > > -James > > On Mar 5, 2017, at 12:23 PM, Joe Guerra <jgu...@jginfosys.com > > wrote: > > ok, here's my method... > > def calc_remaining > @taken = Cart.where('pr

Re: [Rails] Re: show method variable

2017-03-05 Thread Joe Guerra
It works fine in the show method, but fails in add_to_cart. On Sunday, March 5, 2017 at 1:37:54 PM UTC-5, Hassan Schroeder wrote: > > On Sun, Mar 5, 2017 at 10:23 AM, Joe Guerra <jgu...@jginfosys.com > > wrote: > > > def calc_remaining > > @taken = Cart.where('

Re: [Rails] update query

2017-03-03 Thread Joe Guerra
If I'm running the command in the console why would it look thru my code? On Friday, March 3, 2017 at 9:51:49 AM UTC-5, Rob Biedenharn wrote: > > > On 2017-Mar-3, at 09:46 , Joe Guerra <jgu...@jginfosys.com > > wrote: > > > I'm not sure why I'm getting this... I'm

Re: [Rails] update query

2017-03-03 Thread Joe Guerra
ok , I found and corrected it in my model and can't locate any other files that might have the wrong syntax. Is there no way for rails to pinpoint where it's looking when it crash? On Fri, Mar 3, 2017 at 10:07 AM, Colin Law <clan...@gmail.com> wrote: > On 3 March 2017 at 14:58, Joe Gue

Re: [Rails] update query

2017-03-03 Thread Joe Guerra
ok, for some reason now it works? maybe I needed to restart the console after i made changes to my code. On Fri, Mar 3, 2017 at 10:21 AM, Joe Guerra <jgue...@jginfosys.com> wrote: > ok , I found and corrected it in my model and can't locate any other files > that might have the

[Rails] show method variable

2017-03-02 Thread Joe Guerra
In my show method for my products controller I've got a variable that track qty ( @remaining ). Can I access this variable from another method within the same controller? Thanks, Joe -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Re: sql help

2017-04-14 Thread Joe Guerra
ok, I've got it working but... <%= Product.where( ['id =?', iu.product_id ]).pluck("title") %> *It's got [' '] around my title.* On Friday, April 14, 2017 at 12:43:42 PM UTC-4, Joe Guerra wrote: > > I need to return a product title from an id. I'

[Rails] bootstrap

2017-07-06 Thread Joe Guerra
I'm going to swap out the bootstrap ui on my site. It's very plain and boring. Is there anything else can replace it with? I hear foundation is pretty good? Thanks, Joe -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] postgresql query

2017-07-18 Thread Joe Guerra
I was wondering if I can create a new field in a table and put a sub query in it? Thanks, Joe -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Rails] Re: postgresql query

2017-07-19 Thread Joe Guerra
That's ok, I've scrapped my rails project. On Tuesday, July 18, 2017 at 3:03:14 PM UTC-4, Joe Guerra wrote: > > I was wondering if I can create a new field in a table and put a sub query > in it? > > Thanks, > Joe > -- You received this message because you are sub

[Rails] Re: newbie but 32 years old

2017-07-20 Thread Joe Guerra
The other thing is get a github account right away and start making regular contributions. Nice thing about github, it shows you how much work you've put into it. Finally, start applying even if you don't have the experience on small jobs online using freelance sites. On Thursday, July 20,

[Rails] Re: newbie but 32 years old

2017-07-20 Thread Joe Guerra
It's very hard to find the time if you have a full-time job. 1. if your committed, I would quit your job. It takes a good 40 to 60 hrs a week to fully grasp and remember stuff. 2. find a good bootcamp, I think in class training is more structured than online training, but it will cost you

Re: [Rails] migration problems

2017-04-28 Thread Joe Guerra
oh, right. Just to do some minor things, but with pgadmin you have to write a bunch of sql. On Friday, April 28, 2017 at 9:18:54 AM UTC-4, Colin Law wrote: > > On 28 April 2017 at 14:15, Joe Guerra <jgu...@jginfosys.com > > wrote: > > Got it working. I was just using

[Rails] Re: Looking for ROR projects to work on

2017-04-28 Thread Joe Guerra
How much experience do you have? On Thursday, April 20, 2017 at 9:52:54 AM UTC-4, sadathiru wrote: > > Hello, > > I've a team of ROR developers who are ready to engage in delivering. > > We've experienced with different flavor of technologies other than ROR > like python, java, perl,

[Rails] gem auto-session timeout

2017-04-28 Thread Joe Guerra
Hi, does anyone have any experience with this gem? I've got it plugged into my app, but I believe it requires some javascript (and the gem 'jquery-ui-rails', '~> 4.2.1' ). *It's been awhile since I've looked at it, and i've just # commented the jquery-ui-rails out of my app (because it

[Rails] migration problems

2017-04-27 Thread Joe Guerra
Hi, I got stuck on a migration (basically to fix a column name). I actually went into the table itself and corrected the problem. My herkou migration gets stuck, and I've got other migrations behind it that aren't running. What should I do? Thanks, Joe -- You received this message

Re: [Rails] migration problems

2017-04-28 Thread Joe Guerra
Got it working. I was just using the default settings that ror. It's much easier to deal with sqlite in development. I hate using PGAdmin for postgres. Thanks, Joe On Thursday, April 27, 2017 at 7:30:10 PM UTC-4, jim wrote: > > > > On Fri, Apr 28, 2017 at 9:17 AM, Joe

Re: [Rails] migration problems

2017-04-27 Thread Joe Guerra
in postgres. (so the quickest fix for me was to edit the column in postgress directly). I belive I skipped this migration before, but I forget how I did that. Thanks, Joe On Thursday, April 27, 2017 at 7:02:48 PM UTC-4, jim wrote: > > > > On Fri, Apr 28, 2017 at 8:54 AM, Joe

Re: [Rails] Sketch (mac app)

2017-06-20 Thread Joe Guerra
Yes, I tried it. But it expired after a couple of days. On Tuesday, June 20, 2017 at 4:29:57 PM UTC-4, Hassan Schroeder wrote: > > On Tue, Jun 20, 2017 at 12:47 PM, Joe Guerra <jgu...@jginfosys.com > > wrote: > > Is this a useful tool for web development? I tho

[Rails] Sketch (mac app)

2017-06-20 Thread Joe Guerra
Is this a useful tool for web development? I thought about purchasing it and learning/using it, but I don't know how well it fits in with ruby on rails and other stuff. I am a weak programmer, and even weaker designer (I prefer black and white text). Thanks, Joe -- You received this

[Rails] sendgrid email?

2017-05-24 Thread Joe Guerra
I'd like registered users with valid email addresses to send messages to their friends [using a form]. Is this possible using sendgrid? or does it have to originate from my registered email address? Thanks, Joe -- You received this message because you are subscribed to the Google Groups

[Rails] deploying to heroku

2017-05-27 Thread Joe Guerra
Hi, I'm not sure why my app on heroku is crashing. I've added a requests controller, and everything works locally using sqlite. here's my log from heroku... 2017-05-27T13:07:36.250694+00:00 app[web.1]:[1m [35mUser Load (1.7ms) [0m SELECT "users".* FROM "users" WHERE "users"."id" =

Re: [Rails] deploying to heroku

2017-05-27 Thread Joe Guerra
Yes, I believe so. On Sat, May 27, 2017 at 9:18 AM, nynhex <nyn...@gmail.com> wrote: > Is your controller class name named properly and have you committed this > controller to version control before deploying to Herkoku? > > Sent from my iPhone > > On May 27, 2017, at 8

Re: [Rails] deploying to heroku

2017-05-27 Thread Joe Guerra
equest and response are almost reserved naming > conventions in rails. > > > On May 27, 2017, at 9:32 AM, Hassan Schroeder <hassan.s...@gmail.com > > wrote: > > > > On Sat, May 27, 2017 at 6:15 AM, Joe Guerra <jgu...@jginfosys.com > > wrote: > &

[Rails] notifications

2017-05-29 Thread Joe Guerra
Hi, I have this notifications table which basically has a userid and a msg (notification). What should I do with the userid? I would like to look up the user by name and stick the id in the table. Is that normally what you'd do in this case? A dropdown list would be too large. Thanks,

Re: [Rails] notifications

2017-05-29 Thread Joe Guerra
On Mon, May 29, 2017 at 1:55 PM, Walter Lee Davis <wa...@wdstudio.com> wrote: > > > > On May 29, 2017, at 1:34 PM, Joe Guerra <jgue...@jginfosys.com> wrote: > > > > Hi, I have this notifications table which basically has a userid and a > msg (notification). >

Re: [Rails] http requests

2017-05-31 Thread Joe Guerra
Ok, I'll try the gem. How about passing the parameters in the url? and opening up the canada post site with that? Thanks, Joe On Wednesday, May 31, 2017 at 1:36:20 PM UTC-4, Hassan Schroeder wrote: > > On Wed, May 31, 2017 at 10:27 AM, Joe Guerra <jgu...@jginfosys.com > >

[Rails] http requests

2017-05-31 Thread Joe Guerra
Hmm, which gem would allow you to perform http requests within Rails? I would like to send a request to the canadapost website and pass it some parameters and return a shipping total. I do believe there is a canadapost gem, but I'm not sure how upto date it is. I guess the other option is to

[Rails] Re: http requests

2017-06-02 Thread Joe Guerra
On Thursday, June 1, 2017 at 1:46:39 PM UTC-4, Joe Guerra wrote: > > Well, I got the canada post api keys. > > I've got to try it with one of following canada post gem... > > https://rubygems.org/search?utf8=%E2%9C%93=canada+post > > > > On Thursday, June 1, 2017 at 12:29:

[Rails] Re: http requests

2017-06-02 Thread Joe Guerra
:42 AM UTC-7, Joe Guerra wrote: >> >> Hmm, which gem would allow you to perform http requests within Rails? I >> would like to send a request to the canadapost website and pass it some >> parameters and return a shipping total. >> >> I do believe there is

[Rails] Re: http requests

2017-06-01 Thread Joe Guerra
017 at 10:27:42 AM UTC-7, Joe Guerra wrote: >> >> Hmm, which gem would allow you to perform http requests within Rails? I >> would like to send a request to the canadapost website and pass it some >> parameters and return a shipping total. >> >> I do believe ther

Re: [Rails] http requests

2017-06-06 Thread Joe Guerra
esponded with Github tech support > over their policy regarding passed-away authors), or no longer cares, you > can detach your fork from the origin repository and make a "V2" (or > whatever) of the gem, upgraded with your fixes, rename it, and then you'll > be the Gem's author.

[Rails] rubymine 2.4.1

2017-06-06 Thread Joe Guerra
I just installed a new version of ruby (2.4.1) using rbenv. I have 2.3.1 installed as well. I've downloaded some source code that requires 2.4.1, and can't seem to figure out how to switch ruby versions in the IDE (for that product). Any suggestions? -- You received this message because

[Rails] Re: rubymine 2.4.1

2017-06-06 Thread Joe Guerra
Ok, I figured it out. I installed ruby 2.4.1 , but forgot to install rails for it. lol. On Tuesday, June 6, 2017 at 7:04:21 PM UTC-4, Joe Guerra wrote: > > I just installed a new version of ruby (2.4.1) using rbenv. > > I have 2.3.1 installed as well. I've downloaded some

[Rails] Re: rubymine 2.4.1

2017-06-06 Thread Joe Guerra
Lol, now I've got to get rails installed for that version. My default version is still 2.3.1. On Tuesday, June 6, 2017 at 7:08:44 PM UTC-4, Joe Guerra wrote: > > Ok, I figured it out. I installed ruby 2.4.1 , but forgot to install > rails for it. lol. > > > > On Tuesd

[Rails] Re: directory index

2017-06-16 Thread Joe Guerra
or this ... https://rubygems.org/gems/directory_listing On Friday, June 16, 2017 at 3:59:55 PM UTC-4, fugee ohu wrote: > > I have a bunch of media files I wanna be able to share by offering site > visitors and directory index of the folder and letting them right click to > save files to their

[Rails] Re: directory index

2017-06-16 Thread Joe Guerra
Why not try using this gem https://rubygems.org/gems/directory_watcher I'm sure it will help you with your task. On Friday, June 16, 2017 at 3:59:55 PM UTC-4, fugee ohu wrote: > > I have a bunch of media files I wanna be able to share by offering site > visitors and directory index of the

[Rails] Re: JOBS - senior ruby on rails developer opportunity downtown

2017-05-30 Thread Joe Guerra
lol, downtown where? On Tuesday, May 30, 2017 at 2:21:48 PM UTC-4, Lisa Thompson wrote: > > *Company* > > Fast-growing software company located downtown. > > > > *Perks* > > Doubled in size in the past 6 months > > Huge career growth opportunities > > Talented team > > > > *Job – Ruby on

Re: [Rails] Re: http requests

2017-06-05 Thread Joe Guerra
Yes, it installed it. But the gem is not very well documented. I can't get it to work. On Friday, June 2, 2017 at 5:07:10 PM UTC-4, Colin Law wrote: > > On 2 June 2017 at 18:23, Joe Guerra <jgu...@jginfosys.com > > wrote: > > hmm, the canada post gem requires

Re: [Rails] Re: http requests

2017-06-06 Thread Joe Guerra
Yes, I'm going to email the author of the gem. Get his take on it. It hasn't been updated for over 2 years. Maybe something has changed on the Canada post side. On Monday, June 5, 2017 at 4:17:20 PM UTC-4, Hassan Schroeder wrote: > > On Mon, Jun 5, 2017 at 12:08 PM, Joe Guerr

Re: [Rails] Re: routes

2017-09-11 Thread Joe Guerra
ok, it looks like my other form <%= simple_form_for @gallery do |f| %> <% if @gallery.errors.any? %> <%= "#{pluralize(@gallery.errors.count, "error")} prohibited this image from being saved:" %> <%

Re: [Rails] routes

2017-09-15 Thread Joe Guerra
Ok, I see where I made my error. I refactored the names of a few things and it's working much better now. On Thursday, September 14, 2017 at 3:31:38 AM UTC-4, Colin Law wrote: > > On 14 September 2017 at 01:02, Joe Guerra <jgu...@jginfosys.com > > wrote: > >> T

Re: [Rails] routes

2017-09-13 Thread Joe Guerra
Thanks. What should I do to fix it? Should I re-run the generator? On Tue, Sep 12, 2017 at 7:10 PM, Rob Biedenharn <rob.biedenh...@gmail.com> wrote: > I'm removing most of the "noise" from your output and focussing on the > gallery-relevant bits: > > On 2017-S

Re: [Rails] Re: notification message

2017-10-06 Thread Joe Guerra
oh, it wasn't too hard. I followed most of this -> http://guides.rubyonrails.org/action_mailer_basics.html basically generated a mailer 'rails generate mailer Interview_Notification' it created the mailer(s) and views I needed. class InterviewNotificationMailer < ActionMailer::Base

[Rails] Re: notification message

2017-10-06 Thread Joe Guerra
w.jginfosys.com', :address => 'smtp.sendgrid.net', :port => 587, :authentication => :plain, :enable_starttls_auto => true } Of course, change your host and domain to match yours. On Wednesday, September 27, 2017 at 6:32:03 PM UTC-4, Joe Guerra wrote: > > Ju

Re: [Rails] source level debuggin

2017-10-02 Thread Joe Guerra
I've been using Rubymine as well. Is there any video out there that covers the source level debugging? Thanks, Joe On Monday, October 2, 2017 at 4:41:30 PM UTC-4, Brendon wrote: > > > > On Sunday, October 1, 2017 at 11:24:03 AM UTC-7, Hassan Schroeder wrote: >> >> On Sun, Oct 1, 2017 at 10:15

[Rails] Re: ransack search

2017-10-13 Thread Joe Guerra
Ok, I figured it out. https://stackoverflow.com/questions/33601480/determine-which-submit-button-clicked-when-they-have-same-name On Friday, October 13, 2017 at 8:04:43 PM UTC-4, Joe Guerra wrote: > > Hi, how would I detect if the search form button has been submitted? I > have t

[Rails] ransack search

2017-10-13 Thread Joe Guerra
Hi, how would I detect if the search form button has been submitted? I have the search results returned in the index ok, but I like to conditionally show the number of records only when the button has been pressed. Thanks, Joe -- You received this message because you are subscribed to the

Re: [Rails] Re: Dependencies

2017-09-08 Thread Joe Guerra
Ok, I missed that constraint. I will look at swapping it out, but it compiled ok now. On Sep 8, 2017 5:20 AM, "Frederick Cheung" <frederick.che...@gmail.com> wrote: > > > On Thursday, September 7, 2017 at 2:13:46 AM UTC+1, Joe Guerra wrote: >> >> ok, a

Re: [Rails] Migrations

2017-09-05 Thread Joe Guerra
ok, I recreated the migration and ran it. It fixed my problem. (but I have 2 that do the same thing). On Tuesday, September 5, 2017 at 1:03:14 PM UTC-4, Joe Guerra wrote: > > oh ok, I didn't realize that. > > I do have one migration that I need to run that alters the name of

  1   2   3   >