Re: [Rails] Old Rails app from Docker Container - trying to run natively again . .

2020-03-14 Thread Hassan Schroeder
On Sat, Mar 14, 2020 at 3:52 PM Philip Rhoades  wrote:

> Docker crashed and I lost the Rails container so I have to go back to
> the original source.

I don't know what "lost the Rails container" means. Can't you just
rerun the Dockerfile?

> Could someone suggest how I could fix the problem seen below? - I
> deleted the Gemfile.lock file first.

Why?

> $ ./bin/rails s
> /home/phr/src/ruby/rails/domain-sf/vendor/bundle/ruby/2.6.0/gems/activesupport-4.1.5/lib/active_support/core_ext/object/duplicable.rb:82:
> warning: BigDecimal.new is deprecated; use BigDecimal() method instead.
> => Booting Puma
> => Rails 4.1.5 application starting in development on

Did you originally develop this Rails 4.1.5 app using Ruby 2.6.0? Or
I guess more exactly have you been running it on that Ruby version
successfully?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCiYMuRZY4xf2SuWLkQCt87eMetgHjsNXKGdX%2BWAGkfkg%40mail.gmail.com.


Re: [Rails] Locusts in Africa

2020-02-15 Thread Hassan Schroeder
On Fri, Feb 14, 2020 at 10:30 PM David Hughes
 wrote:

> I pay a team in India to do this.

:-(

> Now in recent weeks Ruby experts at Penn State have looked at our code and it 
> is very bad!

I've been dropped into this situation and I'll bet money that there is
virtually nothing salvageable from that code.

> We could have thousands of coders like you.

OMG no. You do *not* need "thousands of coders", you need one or
two senior devs to triage your current mess and choose the best way
forward (which might be a complete rewrite).

Open sourcing the code either as-is or as a new app still requires some
technical leadership to define requirements (and set expectations) and
experienced eyes reviewing PRs -- it's not magic.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDM%3DNdynB%3D9P98hCvdpW45B-gud6cyvrj8%2BWWBk4he2jg%40mail.gmail.com.


Re: [Rails] Re: general 3rd party troubleshooting tips?

2020-01-29 Thread Hassan Schroeder
> It's ok now, I got fired.

Those two phrases don't seem to go together, but good luck to you!

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBhfS4KePiLt7P7yAY%2B4F673vbuxJC89dMAEq6cxDj0uw%40mail.gmail.com.


Re: [Rails] Re: how do i know what ruby version my site was built with

2020-01-05 Thread Hassan Schroeder
On Sun, Jan 5, 2020 at 12:07 PM avdhesh sharma  wrote:
>
> If I didn't specify a ruby version in my Gemfile then you can see the ruby 
> version in .ruby-version file in your project directory which is created at 
> the time of creating a project.

Well, kinda sorta maybe :-)

It's not created pre-Rails 5.0, and it's meaningless unless you're
using a version manager that recognizes that file.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDN3HKrV_mh7NcMqv0e73EqaLsZaYcvbLJh61H7Z3XMkg%40mail.gmail.com.


Re: [Rails] how do i handle one api route?

2019-12-29 Thread Hassan Schroeder
On Sun, Dec 29, 2019 at 4:11 PM tom  wrote:

> i have an app with one api endpoint. that end point is more and more in use, 
> and i was wondering how i can make that endpoint not boggle down the app?

Any of:

1. Benchmark, measure, address bottlenecks
2. Scale vertically
3. Scale horizontally

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yACu3Z1dc7AqRxT18UibrTrv%3DeHBQJhSzi7-%3DcAmVW7BQ%40mail.gmail.com.


Re: [Rails] Carrierwave metadata for original creation date?

2019-09-20 Thread Hassan Schroeder
On Fri, Sep 20, 2019 at 3:00 PM fugee ohu  wrote:

>> > How do I keep a record of the original creation date? What if I wanna 
>> > preserve the original creation date?

Looks like that's a no:

https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications

(unless you control the source endpoints and can incorporate that
information into e.g. the file name).
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCjbFY6q%2BmxAxej5vLcttZAevmqt%2B1Sqv3h9w8WEUN%3D4Q%40mail.gmail.com.


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

2019-08-09 Thread Hassan Schroeder
On Thu, Aug 8, 2019 at 10:00 PM San Ji  wrote:

> They basiaclly said they receive this inquiry frequently, and they don't 
> support it as they did not use it themselves.
> https://github.com/puma/puma/issues/1895
>
> I am still open for any pointers and suggestions.
> I wonder if there are other ways that did not incur burden on the operation 
> team.

? There's already a concrete suggestion in the GH issue: "use JRuby"
(or presumably Rubinius). Have you tried that?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA8gMFCOz7fO2B4rOAQc0nGY_Use4RagXRzoGnfiAGUjw%40mail.gmail.com.


Re: [Rails] I'm trying to start dbconsole by rails, but it's starting too long

2019-07-21 Thread Hassan Schroeder
On Sun, Jul 21, 2019 at 5:02 AM Pavel Pyshinskiy
 wrote:
>
> I have a problem. I can't run dbconsole. After I enter "rails dbconsole" 
> there is nothing happens.

Is your DB local or remote?

Can you reach your DB from a terminal window using the settings in
your database.yml?

Do you see anything in the DB query log when you attempt to open
the console?

It would also help to provide Ruby/Rails/database versions when
asking this kind of question.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBOkw5dzXc5N2zD%3DBTxVc-donjNC56bi18e0KBuUfdi2g%40mail.gmail.com.


Re: [Rails] How should I go about upgrading Ubuntu Server that my Rails application is running on?

2019-07-18 Thread Hassan Schroeder
On Thu, Jul 18, 2019 at 1:05 PM David McDonald  wrote:

> I think I just need to backup my nginx.conf, and sites-enabled folder.

If you put all your config files into a git repo it'll make it easier to see
what's getting changed by the upgrade process.

It's all useful if you wind up going the new-server-reinstall-the-app
route (which would be my preference).

HTH, and good luck!

--
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAywNtxFVaL3TPcQYZhf5kphf-rr3e61C7N23EmLQ%3DXOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] cannot upload more than 8-9KB in production

2019-06-13 Thread Hassan Schroeder
On Thu, Jun 13, 2019 at 9:48 AM Walther Privat  wrote:

> But in dev all is good - and I am not sure I can run it in production without 
> (lots of other sites bound to 80/443 :(

You can test in production *mode* locally, or on another system,
and try with and without Nginx in front. Or compare using another
proxy entirely, e.g. Squid or an AWS ELB.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCvVEJ9NYpvqjtW0iwgpJ_TkSR3oTW-D-xkCor9QWaSNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Rake aborted!

2019-03-10 Thread Hassan Schroeder
On Sun, Mar 10, 2019 at 9:45 AM  wrote:

> Now that the bundle install has run successfully I have run into the 
> following error while running rake db:create. Does anyone have any ideas how 
> to resolve the issue?

> rake aborted!
> ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See 
> https://github.com/rails/execjs for a list of available runtimes.

Did you follow the link in the message?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCjPtXUbSbAayON1Px6cBDAc58RmnC%3DBgOmx1cE197AMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] mysqld.sock

2019-03-06 Thread Hassan Schroeder
On Wed, Mar 6, 2019 at 5:29 PM  wrote:

> What is the purpose of the mysqld.sock file. Can't I just specify localhost?

https://serverfault.com/questions/124517/whats-the-difference-between-unix-socket-and-tcp-ip-socket

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCgxK76jngZzbCAXQ_7ysTvxR2j1tVaun7iRHKm6y9Sgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Uploading from desktop to Heroku

2019-02-23 Thread Hassan Schroeder
On Sat, Feb 23, 2019 at 10:57 AM  wrote:
>
> Maybe i should rephrase the question. If I have another online source safe, 
> why should I use github?

Ah, different question.

> Is there not a way to go directly from my development machine to uploading to 
> Heroku?

?? I sent a link to Heroku's docs already -- did you look there?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBWJqF_VOBzzdm2Je3SPb%2BgufEJCKJQ%3D7UnFN6AzggBwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Uploading from desktop to Heroku

2019-02-23 Thread Hassan Schroeder
On Sat, Feb 23, 2019 at 10:21 AM  wrote:
>
> Why do I want to create a github first? What is the value in doing so?

Interaction with Heroku aside,

1. You have your code somewhere besides your local disk as backup
2. It makes your project code accessible if you're switching computers
3. It allows you to easily collaborate with others on your project
4. Github will scan your dependencies and report packages that have
security updates to be installed

For starters :-)
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCJBx6VbFx2S_r4ivzqXhPmxaWYY7H3GufjuEvew6AMMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Uploading from desktop to Heroku

2019-02-23 Thread Hassan Schroeder
On Sat, Feb 23, 2019 at 9:22 AM  wrote:

> It appears I have gotten all the kinks worked out of this webapp. What I 
> would like to do now is upload it to Heroku from my Ubuntu Desktop. Please 
> advise to the steps associated with performing that task and any and all 
> advise in regard to things I should watch out for or be concerned about.

Heroku's docs are pretty good -- I'd start here:

https://devcenter.heroku.com/categories/command-line

Good luck!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBFjVpPATSL_HbVJeJX0PCS86L0TOVZKaGuox4VhcGjzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Combination for boolean value array

2019-02-22 Thread Hassan Schroeder
On Fri, Feb 22, 2019 at 4:36 AM Sapna Mishra  wrote:

> Issue is now I am not able use this combination to check whether it satisfies 
> the condition as it is consider as string class.

If I saw something like that in a PR I would reject it in ~2 seconds.

What actual problem are you trying to solve?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCg%2Bm9gv5%3DuESBmdzYOSYCV%3DCspNdbkhB3hucVEXgbFcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Meals on Wheels - existing meal ordering app?

2019-02-18 Thread Hassan Schroeder
On Mon, Feb 18, 2019 at 4:11 PM Philip Rhoades  wrote:

> > Interesting little project.  I could see that you could create
> > something for your local MoW and then providing it to any other MoWs
> > out there...
>
> I am surprised something like this hasn't already been already done
> centrally somehow.

LOL I'm not surprised -- organizations like this tend to be way behind
the tech curve, and have few resources to address that.

Doing a one-off app is one thing, doing a "universal" configurable app
for multiple deployments is another, potentially more valuable in the
long run but of course more work.

You might want to see if there are Australian civic tech groups with
experience in this area.

Good luck, and have fun!

P.S. Don't forget about accessibility issues for an aging audience.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC22MJY63wF0GGjVYWdBrM%3DXiQnZSv66i%3DYPdir3857%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Building basic airline reservation system with Ruby on Rails

2019-02-10 Thread Hassan Schroeder
On Sun, Feb 10, 2019 at 3:55 PM Daniel Toma  wrote:
>
> Hi, thank you very much for replying.  I forgot to mention a biggie:   that 
> JS isn't allowed.  I can use CSS and Bootstrap but no JS allowed in this 
> particular project (JS is our next module).
> I sense that Ruby (on Rails) isn't particularly geared for this type of 
> interactivity.

If you want client-side "interactivity" JavaScript is the only option.

Rails is no different in this respect from any other server technology.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAoXYaO0_mRnkeeeSjnSccyHCD-w9fuRKsutPN2Lr1S_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Adding uploaded pictures fro Heroku to AWS S3 Bucket

2019-02-07 Thread Hassan Schroeder
On Thu, Feb 7, 2019 at 12:16 PM David Merrick  wrote:
>
> When  I click on the URL  for the image I get this message
>
> 
> AccessDenied
> Access Denied
> 8866EFBB969E901F
> 
> 2E/t/DqGuJMiOcZIaq/WVU8F0KjFRQq91r+bNZz3OWigBEMOczczJ2aFrnHfXn4wQ7E/A7WNPP4=
> 
> 

So your bucket isn't configured for public http(s) access; time to dig
into the S3 config...

Good luck!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDgwrrtpF5x8S%3D66%2B%2BWrA%2BWxNCWdMwxT0x4py0BsQ185g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Adding uploaded pictures fro Heroku to AWS S3 Bucket

2019-02-06 Thread Hassan Schroeder
On Wed, Feb 6, 2019 at 8:31 PM David Merrick  wrote:
>
> Current errors 500 Internal Server Error and Aws::S3::Errors::AccessDenied

Can you manually upload an image to S3 via the AWS CLI using
those credentials?

Can you view an uploaded image from that bucket in a browser?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBYDpgVFi%3DpSa5%3Du%2B-tR-md48xkEbdhfj%2BCzTsjEEPOpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-28 Thread Hassan Schroeder
On Mon, Jan 28, 2019 at 1:37 PM David Merrick  wrote:

> I was hoping to avoid reading through a lot of stuff and still not
> understanding it to find a solution to meet my needs.

Well, I hate to say it but if meeting your perceived needs requires more
knowledge than you currently have, reading and understanding will be
pretty much essential to move forward 

Have fun!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB2hMv8oLv8gGJSZPDZENuBO015%2B5AprmyyeD9RyGA%3Dxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-28 Thread Hassan Schroeder
On Mon, Jan 28, 2019 at 12:54 PM David Merrick  wrote:
>
> I'm looking for something in AWS thats easy to set up, stores images and 
> relatively cheap to run like about $US 2 -3 per month

What do you mean by "stores images"? "uses images stored in the
app deployment artifact" is very different than "allows users to upload
and save images".

If the former, you could most likely use the Heroku free tier. If the
latter, you could use Heroku and S3 together within that budget.

Regardless, you need to research what's going to meet your needs
and budget, and decide how much you want to learn about being a
full-service developer 

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC%3Dzo7X%3Deif_8Qt77JAEUsXJ62sZ7ztaq9DmrmdsLY2OQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-28 Thread Hassan Schroeder
On Mon, Jan 28, 2019 at 12:19 PM David Merrick  wrote:
>
> Yes I have EC2 instance but its on Cloud9

This Cloud9 thing isn't remotely relevant to this discussion.

You need to provision an EC2 instance of your own, configure it as
necessary and deploy your app to it. Those are the first steps toward
having your app "run all the time".

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAKvPO5WeZNgM2PkfQZ%3DDFoXPgNOKbB12YU6jrzTFiV7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-28 Thread Hassan Schroeder
On Sun, Jan 27, 2019 at 12:33 PM David Merrick  wrote:

> I would like to know how to do
> + Is your system configured to monitor your app and restart it when it 
> crashes?
> + Is your system configured to notify you when it can't reliably
> restart a crashed app?
> + Do you have monitoring in place to notify you when your app's unreachable?

Too broad to answer. It depends on the server OS, how you've set
up Rails (web server, app server), budget, etc. etc.

Do you have a current running EC2 instance, or is this brand new?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDgbjbjpPFBeJnQV3MRpQToLTqZ9jenH%2BQtyNswxiA1JA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-27 Thread Hassan Schroeder
On Sun, Jan 27, 2019 at 10:05 AM David Merrick  wrote:

> My system isn't configured to monitor your my App and restart it when it 
> crashes.  But since I only have a few Websites monitoring wouldn't be a 
> problem. If it crashed I would look at the the logs.

Then it won't "run all the time". The point isn't troubleshooting after
the fact, it's automating the processes to *keep it running*.

Also,
> All my code in my app is tested.

I have yet to see an app with really adequate tests, even ones that
your-choice-of-tool claims have 100% coverage.

But managed restarts and alerting address that up to the point of
needing to deploy redundant infrastructure.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDBqKykyDXkKZQ%3DtdT_TZ34kbrTpy-denM_tLyR6Q6Lig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-26 Thread Hassan Schroeder
On Sat, Jan 26, 2019 at 12:56 PM David Merrick  wrote:
>
> How do you ensure it runs all the time?

LOL, what's your uptime requirement and budget? Let's start here:

+ Do you have untested code in your app that could crash it?
+ Is your system configured to monitor your app and restart it when it crashes?
+ Is your system configured to notify you when it can't reliably
restart a crashed app?
+ Do you have monitoring in place to notify you when your app's unreachable?

Fix the ones you answered "no" to and then we'll discuss next steps
towards "all the time"  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBQugSQFmiGbdZYCzjjVxfuXwQWNWVeGhCA-iBdrfhXQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-26 Thread Hassan Schroeder
On Sat, Jan 26, 2019 at 12:48 PM David Merrick  wrote:
>
> I meant a place where I can run my Rails App from so its runs all the time.

That's pretty much the definition of a server, eh? Though whether the
app runs "all the time" is at least partially up to you 

Best of luck!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yALEgUOsbw_anRexQi%3DZjCYLXYRTC01WU7x3%3DV%2BVG8UCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-26 Thread Hassan Schroeder
On Sat, Jan 26, 2019 at 12:27 PM David Merrick  wrote:
>
> Hi so I can use EC2 store the Rails App and Route53 to manage the Domain Name?

I'm not sure what you mean by "store" -- an EC2 instance is a server
that you can deploy your app on.

And yes Route53 is AWS's DNS management system.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAVHSa%2BUB2BurqxwASjoo%2BdGff9Nh3NLrvSnjkojSOtbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] AWS and hosting a Website

2019-01-26 Thread Hassan Schroeder
On Sat, Jan 26, 2019 at 11:20 AM David Merrick  wrote:

> I want a AWS Service that I can set up to run a Website with a Domain Name 
> attached and keep it while I'm not logged into Amazon?

Unless you want to plunge into exploring container-land, what's wrong
with an EC2 instance and Route53 for DNS?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAzdY4vUSMP%3DVYU18Qubae2yLSBRAG43nTsqgP_oQeLHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: ImageMagick And Amazon Cloud 9

2019-01-16 Thread Hassan Schroeder
On Wed, Jan 16, 2019 at 4:19 PM David Merrick  wrote:
>
> Hi I have a web app test running on Amazon Cloud 9. The users using the 
> website have the ability to up load images. They currently can't do it. as I 
> can't install ImageMagic let along the gem.

Repeating the same information-free nonsense over and over won't
improve your chances of getting help.

Why do you think "ImageMagick" and "file uploading" have anything
to do with each other? Show the upload handling code, your Gemfile,
an actual error message, something.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yD2-rGHSKYuHMuLUu7rqPSvcPKpVRCXfTnR_pCC35pL_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Incrementally upgrade rails 4.1 to 4.2

2019-01-13 Thread Hassan Schroeder
On Sun, Jan 13, 2019 at 1:42 PM  wrote:

> Can you assist me with the syntax to incrementally upgrade rails 4.1 to 4.2?

I'm not sure what "syntax" is in this context, but upgrading is just a
matter of editing your project Gemfile and running `bundle update`.

And of course fixing deprecation warnings and errors and whatnot 

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBnWsmyqzzKo5R4ENu%3D1MOifMm_9XJZju9Tx9UtVTkdDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] 404 Not found In production mode

2019-01-12 Thread Hassan Schroeder
On Sat, Jan 12, 2019 at 10:48 AM fugee ohu  wrote:
>
> I just brought up a new server on Ubuntu 18.04 and all my sites are returning 
> 404 not found I don't know why

With no more data than that I doubt _anyone_ will ever know why.

PSA: http://www.catb.org/esr/faqs/smart-questions.html

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAepMyBCbsqQSN3zNGwhdg_-Kj5gr_2k_v0aGCNHReZVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] App migration and upgrading

2019-01-06 Thread Hassan Schroeder
On Sun, Jan 6, 2019 at 10:12 AM  wrote:

> When you take on updating an older app is it always this daunting to 
> configure the setup? It seems like every turn there is an issue with either 
> an outdated gem or the database. Do you have a protocol for this is it 
> literally this trial and error.

I had this printed and taped to the side of my monitor at a previous gig
<https://boyter.org/static/books/CphhR1GW8AAeOkg.jpg>
where I was doing a fairly complex 4.0.x  -> 5.x upgrade while the app
was being actively developed :-)

That said, have you read
<https://guides.rubyonrails.org/upgrading_ruby_on_rails.html> ?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDRoLWjS%2BNQFV%3DrMpnmiaPWD2A46pLw%3DRwyGpEpYwP-FQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] text visible in browser but not in source

2018-12-30 Thread Hassan Schroeder
On Sun, Dec 30, 2018 at 3:37 AM fugee ohu  wrote:
>>
> You mean the Net::HTTP docs? I don't know I haven't thought to read them



> I found this page 
> http://po-ru.com/diary/turning-jsonp-callbacks-into-a-ruby-api-with-johnson/ 
> but don't understand it

That's an interesting approach though `johnson` is abandoned; you
could try using `therubyracer` instead.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCaFLSGx9horGE4SZDYtfu%2BSqW9Gq%2BcB%2BpfRSwVyaiGCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] text visible in browser but not in source

2018-12-28 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 11:29 PM fugee ohu  wrote:

>> On Thu, Dec 27, 2018 at 4:10 PM fugee ohu  wrote:

> What docs? You asked if I passed in an `accept request header` so I asked if 
> I need to You're obscuring this thread

>> > So I need to pass in accept request header json as the first parameter to 
>> > NET::HTTP ?

You asked the question above ^^ and without looking at the docs
I wouldn't know the order of arguments ("parameters") to that library.

And I didn't say you *needed* to do anything, I just asked if you were
specifying the content-type you wanted in the request. There's still no
guarantee that's what you'll get, but there's a better chance 

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCC_%2BOX1_c9RyC0OCTadzQ-gTdVVJG6St71jbXgoOw6Rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 4:10 PM fugee ohu  wrote:

> So I need to pass in accept request header json as the first parameter to 
> NET::HTTP ?

Is that what the docs say?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCPe7kN89m39ahW7hovccEAufXkinom5-TEXTAkD6Lx2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 2:00 PM fugee ohu  wrote:

> Net::HTTP.get() returns a string
> data = JSON.parse(response)
> JSON::ParserError: 765: unexpected token at 
> 'jQuery1830644047005491_154589753({"success":true,"code":0,"results":[{"productId"

Did you ask for JSON data via the Accept request header ?
What is the Content-Type response header you get back?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB7%3DZafjpL2jDmu6XnBhmwzuaHB3EYgLGgpX%3DBOR3A2dA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 12:24 PM fugee ohu  wrote:

> So then how

1) choose HTTP client
2) send request
3) parse response

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBKn9_8%2BCy7VFmt5YCn4G%2BphjVGJ1ycmy0Vrew0u-hMSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Capybara visit url from s rails console

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 9:33 AM fugee ohu  wrote:

>  I'm trying to request a site out on the web

Maybe google `ruby http client` ?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDvJhqSnVX_OXnCywK7w0pB4AmN1-qTX_UcUFkzwdrTzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] How do i scrape dynamic content from Struts framework with Ruby

2018-12-25 Thread Hassan Schroeder
On Tue, Dec 25, 2018 at 3:16 PM fugee ohu  wrote:
>
> How do i scrape dynamic content from Struts framework with Ruby

Same as any web source: send a request, parse the response. Is
there some particular issue you're encountering?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAEqPma7FQjYCgCLdBoohVd%2BGCh_R3DFt7ELtNDZL8K8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Run/Migrate Older Ruby Application (Your Ruby version is 2.5.3 but your Gemfile specified 2.3.1)

2018-12-23 Thread Hassan Schroeder
On Sun, Dec 23, 2018 at 11:37 AM Neville Smith  wrote:
>
> No rvm

If you're going to be maintaining this app -- keeping up with ruby and
gem versions -- using rvm or equivalent is *really* helpful.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB%2BF_4FLFqj2jj%3DKhYQL%2BJs-49bZ-_ad%2B%2ByaErW4UXeRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Alternative to Heroku

2018-11-30 Thread Hassan Schroeder
On Fri, Nov 30, 2018 at 12:28 PM David Merrick  wrote:

> What are the alternatives to Heroku that are cheap and or that store your 
> images as well?

AWS S3 plus a small EC2 instance. And of course then you have a
simple way to experiment w/ larger or smaller instances to tune your
billing :-)

(When I was using only S3 for personal storage I used to get AWS
monthly bill of like $0.34 or so.)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBVWDnm6ZpAFsHkvTCtyd3nyi3JDy%2Bgj93hn%3D5Q4nT%3D0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] rails vs. nodejs

2018-11-14 Thread Hassan Schroeder
On Wed, Nov 14, 2018 at 10:04 AM Jake Niemiec  wrote:

>  Rails is more expensive to host & more expensive to develop for

Citation?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAiv%3DaCYQ67mHSbu%3DcvAoJROSGF_LYMqnXv%2ByZeGPKr1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] RoR for poor farmers in Africa

2018-11-13 Thread Hassan Schroeder
On Tue, Nov 13, 2018 at 11:25 AM David Hughes
 wrote:

> I was wondering if I open sourced the site would your community be interested 
> in helping? We work directly with farmers and through the United Nations. It 
> really can be a very impactful project

> I would love to hear your views on whether open sourcing would be a good idea 
> and would people  join in?

Besides a "yes" to open sourcing, I would suggest you look at other
communities and organizations as well. There are many efforts to
bring together socially conscious tech people and the projects that
need them: codecorps.org, codeforgood.io -- search for "tech" and
"social good" :-)

Good luck!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC%2Bt%3DwpyY-%3DyZ83fN1VPYz%3DzgrtN7ZfL4r4zghe4AN8bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] why is HTTP_HOST set to "wrong" value on 2nd nginx server ?

2018-11-07 Thread Hassan Schroeder
On Wed, Nov 7, 2018 at 11:05 AM tom  wrote:

> it works locally, but the server still show HOSTNAME from server 1,
> hence logic failing...
>
> any ideas?

Sure: post your nginx config (or a sample version that demonstrates
the problem) along with something showing how you're determining
what requests the Rails app is receiving.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBcunYsr3A%3Da0Qp0VEfXF%2Bb62mkh7Eq_74JzPRpPL%3DRNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Split before after 1 year groups

2018-10-12 Thread Hassan Schroeder
On Fri, Oct 12, 2018 at 1:34 PM, Stephanie_Snowflake
 wrote:
> Have not found in settings for shipping, since it just a status. I would
> like it to automatic archive if it was shipped after 3 yeaars

Is this a different question? It sounds like you just want a task to run
nightly via cron that sweeps the DB for products with a shipped_date
over 3 years old and "archives" that product.

Depending on your requirements using a rake task or `rails runner`
should handle it.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBMAcQ6qcgLTHweKBAmESwsCerq9CwKBofbfyUngphijg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] disallow devise paths in robots.txt ?

2018-10-07 Thread Hassan Schroeder
On Fri, Oct 5, 2018 at 11:04 PM, fugee ohu  wrote:
> I see bots crawling devise pages in my log:

> Should I disallow those paths in robots.txt ?

1) why?

2) do your logs show these bots *reading* robots.txt?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBoWsK3rHNEHckW5vTenKG4HWh-xUTKrtgepK274VBo3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] [JOBS] RoR engineering for next-gen EdTech platform

2018-10-05 Thread Hassan Schroeder
On Fri, Oct 5, 2018 at 11:08 AM, amitoj singh  wrote:
> Is it a remote job?

LOL the reference to

> beautiful downtown San Francisco office

almost invariably translates to "well, we might consider remote work
in the future but..."  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBcf43KuRnx3UMYziK4SZKfL81yX_JTGa381VmFJSdBuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] google says my sitemap isn't xml

2018-10-01 Thread Hassan Schroeder
On Mon, Oct 1, 2018 at 7:33 AM, fugee ohu  wrote:
> and says type unknown
> browser says this xml file doesn't appear to have any styling information
> associated with it
> i'm generating the xml file from index action

http://www.catb.org/esr/faqs/smart-questions.html

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCqfFA1PKRR-_CFRDTqNgDECjt5NhNuzECm%2BUWx-nmKaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Migrations and feature branches

2018-09-18 Thread Hassan Schroeder
On Tue, Sep 18, 2018 at 3:19 AM, Florian Ebeling
 wrote:
> Is there a common practice how to apply migrations for staging systems
> running various feature branches?
>
> Assume there is a db of significant size, and feature branches including
> migrations are pushed to this server instance.

Can you have a staging system per feature branch? If you're working
in the cloud it's not a huge deal to set that up, and once you have the
infra code written (chef, terraform, etc.), you can have those systems
only run while they're being used.

Alternatives:
1) multiple dockerized db instances per staging server
2) discrete db schema per feature branch on one big DB server
3) have staging deployments do an initial refresh from a base image

Very much an "it depends" question :-)

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCmHZWyYSahPc8aeo58NDTequZcqrMNZu8O_Y4DQ9xpvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] something strange with sqlite ?

2018-09-18 Thread Hassan Schroeder
On Tue, Sep 18, 2018 at 5:59 AM, Joe Guerra  wrote:

> todaydate = Time.new
>
> todaydate = todaydate.year.to_s + "-" + todaydate.month.to_s + "-" +
> todaydate.day.to_s
>
> and the column for enddate is a date type.

Aside from the potential problem of redefining the same variable,
I'd avoid trying to compare a DB `date` with a String, but in this case --

Sqlite3 doesn't have a `date` type so you might want to spend a few
minutes here: https://www.sqlite.org/datatype3.html

 HTH!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yANQfJPrbONT-QfdGMEG_9bfkvoC9Yie4PkVuceo9cpcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] something strange with sqlite ?

2018-09-17 Thread Hassan Schroeder
On Mon, Sep 17, 2018 at 1:20 PM, Joe Guerra  wrote:
> I have an active record query (for my categories) that check for the date (
> .where( 'enddate > ?', todaydate )).
>
> Today's date get's wrapped in quotes, and it fails to produce any records,
> but it's perfectly fine in postgres.

What exactly is "todaydate"? What's the column definition of "enddate"?

And are you sure you have identical records in both DBs you're testing
this with?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBYmgErVK_RYzxZPGEkJ8kUkdcAaC42emNRNJTb0u5BKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-05 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 11:13 PM, Elias Kechter
 wrote:

> yes this would have helped me alot. I figured it out yesterday after I wrote
> the alst emssage. It was all the failure of the uglifier gem. I changed the
> gem version to 3.0.8 (it was 4.1.18 before) and it worked. The uglifier gem
> somehow produced corrupted JS files. But you would have been a great help
> thank you for taking the time

Glad you tracked it down; that was definitely an interesting exercise!

Cheers,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDqZsXOH3S9mmR1vc9iXnwXT%2BB9LYteB%2Bb%3DGqCQt2589g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 1:34 PM, Elias Kechter  wrote:

> It does not work in production either. The Error is now

<https://gist.github.com/hassan/f7b6fdd25330586129fafed544404ec4>

I am def not an expert with the asset pipeline -- try to minimize JS
usage, anyway -- but commenting out the js_compressor line in the
config/environments/production.rb got my local copy of your app to
stop using GET instead of DELETE on your logout example.

Hope that points you in the right direction!

Hassan
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAb7Xi6L_red93Mbsq5fpZ6yLBS3S6JbQmgJYxWCVQd9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] [Testing] Selenium webdriver + Minitest + SQLite3

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 10:05 AM, João Bordalo  wrote:

> Is there a stack trace you can post?
> No, it is the server that raises the error, not the selenium script

? Where are you seeing the error? If it's server-generated then I'd
expect *something* in the logs, hopefully including a stacktrace.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDD88qBy6dscqC3pJ-WYb0%3DhPEMdJKfjwjneP3h%2B5ZVPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] [Testing] Selenium webdriver + Minitest + SQLite3

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 8:38 AM, João Bordalo  wrote:

> Problem: When the selenium 'clicks' on the submit button, the server raises
> the following error related to Sqlite:
>
> SQLite3::BusyException: database is locked: commit transaction

You've confirmed this succeeds when you perform this same operation
manually? I would wonder if Selenium is somehow generating two click
events, but that's a WAG.

Is there a stack trace you can post?


-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDxW%2BDzEuyg%3D30AzRbKaMw0MVX_Ja8E0eHr_hahRODhVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 4:58 AM, Elias Kechter  wrote:
> I think there is a big problem with JavaScript files in Rails 5 apps in
> Production environment on Heroku.

> And the app here: https://rocky-inlet-61318.herokuapp.com/

You probably need to figure out why your app above shows JS errors
in the console on load; do you see any errors in the Heroku loading
messages?

Also, test it locally in production mode and see if there's any difference
in behavior.

HTH!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAm1u67WfLPzmuK0XjOROsZ39yr7xDrT9c%2B%3DTM9qRtgcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Permission Denied error when trying to connect to Solr running on a different server

2018-08-27 Thread Hassan Schroeder
On Mon, Aug 27, 2018 at 1:23 PM Cynde Rogers  wrote:
>
> It was an apache config issue. The SELinux on the machine was not allowing 
> apache to talk to port 8983. I verified this by temporarily turning off the 
> enforcement (setenforce 0). Once I did this I was able to run search as 
> expected.

Ah, does that mean you're running Passenger on Apache httpd?

Didn't think about SELinux either, but thanks for letting us know what
fixed it!

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDL5LA0KEx%3DD0pFV4B%2BRa7n3Q1JB6yy10Qbz0UfPCvtOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Permission Denied error when trying to connect to Solr running on a different server

2018-08-24 Thread Hassan Schroeder
On Fri, Aug 24, 2018 at 5:44 AM, Cynde Rogers  wrote:

> I updated my application config file to point to the solr server and was
> able to populate the index for my site from the command line using rails
> sunspot:solr:reindex (so the application server can communicate with the
> solr server). I was able to verify this by accessing the Solr Dashboard web
> page for the solr server; I can see that my data is there (the numDocs
> matches with what I'd expect).  I was also able to run search from my rails
> console
>
> But when I try to access search through my web application I'm getting
> Errno::EACCES in SearchController#index Permission denied - connect(2) for
> "10.76.42.43" port 8983. (10.76.42.43 is the IP address of my solr server).

So, just to clarify:

>From the *app server* command line, you can successfully run a
rake task on the *solr server* - true/false?

>From the *app server* rails console, you can access the solr server
manually - true/false?

Is the rails app running as the same *nix user that initiated the rails
sunspot:* cmd?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA3mmqQ-ubVa85OBmPDSUTBjr%2BMmUYpoQ%2BaupaT_sXC1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Horrible migration path?

2018-08-22 Thread Hassan Schroeder
On Wed, Aug 22, 2018 at 6:30 AM, Robert Nicholson
 wrote:

> apache 2.2.4, ruby 1.8.7, rails 2.3.8, passenger 2.2.5
>
> and we’re expected to migrate to
>
> apache 2.4.27, ruby 2.51, rails 5.2.1 and passenger 5.3.4

> Are there any migration guides that highlight the complexity involved?



Your options:

1) migrate (very slowly) version-by-version

2) "big bang" re-implement the entire app on the current Ruby/Rails

3) continue running the old version and start replacing it piecemeal
(the "Strangler Pattern")

Good luck!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA%3D-7s1pdccvxkwsfUu6r9s9jRF4f3h5sFTtnjB9EDjLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] layouts/application.html.erb never getting loaded

2018-08-21 Thread Hassan Schroeder
On Mon, Aug 20, 2018 at 7:46 PM, j...@via.net  wrote:
> I have a small website with only static pages. I have s controller for all
> the static pages.
> Application.html never gets loaded. I have replicated the prelude
> boilerplate in each static page. It works, but it kinda ugly.
>
> Is there a way to create a .html.erb page to hold all the boilerplate stuff
> (e.g. !HTML, , etc) and have it automatically loaded
> before any of the static pages?

?? It's created by default: /app/views/layouts/application.html.erb

Kind of the whole point of "layouts" is to wrap content with all that
"boilerplate" automatically. It sounds like your app is basically broken.

I would generate a new app, add your controller and one of your
static pages and play around with that to see how it works, and how
your own app differs.

Re-reading <https://guides.rubyonrails.org/layouts_and_rendering.html>
might help, too.

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDEj2rDGSLkTB-X09iHrK0Ad%2BucLEQnRqwjqs3ZW%3DQK0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] lat lng + radius -> calculate in boundaries of

2018-08-20 Thread Hassan Schroeder
On Mon, Aug 20, 2018 at 6:47 AM, tom  wrote:
>  b = Geokit::Bounds.from_point_and_radius([c.latitude,
> c.longitude],c.distance)

> is this local calculation or does it make an API call?

I would think it'd be local, but to be certain I'd either

1. look at the source code
2. perform the calculation in a console while disconnected from
any network :-)

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCe6w4hT6wg6qmcsVqBJjPQrRNJnYxb0-NW4KhRhayhLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] menu navigation gem for Rails 5?

2018-08-19 Thread Hassan Schroeder
On Sun, Aug 19, 2018 at 1:08 AM, Ralph Shnelvar  wrote:

> Anyone know if my environment is compatible with with simple-navigation?

Never heard of it, haven't used it, but looking here:

https://github.com/codeplant/simple-navigation/blob/master/simple-navigation.gemspec

The only apparent requirement is:

spec.add_runtime_dependency 'activesupport', '>= 2.3.2'

So why not just give it a try?  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yALMo-VUczDtd%3D%2B4xZ1iLTgpqO8b%2BXtkfpb%3D-b95mjSGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] having problem with -> rails g rspec: install

2018-08-18 Thread Hassan Schroeder
On Sat, Aug 18, 2018 at 4:48 PM, Don Bottles  wrote:
> please can you help with which version of bootsnap is compatible with rails
> 5.2

Generate a blank rails app with 5.2 and see what bundler installs.
But I'm not sure how that's relevant to your previously described
problem...

>>> i am running on ruby 2.3, and using rails 4.2.0 for my project

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDp2h6YykCmtKNtTVUK6L3eGLbi7V_ds78swx8ZAqy6bA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] lat lng + radius -> calculate in boundaries of

2018-08-17 Thread Hassan Schroeder
On Fri, Aug 17, 2018 at 12:59 PM, tom  wrote:

> does anyone know how to calculate that w/o using geo-api calls?

https://stackoverflow.com/questions/12966638/how-to-calculate-the-distance-between-two-gps-coordinates-without-using-google-m

1. Do the math yourself, or
2. Use the "geokit" gem  <= that'd be my choice :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBFps9wfXqiRTVXgxLBdwyo6WK7%3DO6vAVNgJpeMem-nbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Split before after 1 year groups

2018-08-17 Thread Hassan Schroeder
On Thu, Aug 16, 2018 at 10:55 AM, Stephanie_Snowflake
 wrote:
> I'm looking for a way to split a group of data (ex. Sales Orders)
>
> Currently split (In Progress, On Hold, Shipped, Cancelled)
>
> I would like to split Shipped into two
>
> Shipped (before 1 year)
> Archive Shipped (after 1 year)

As far as I can tell, nothing in the model you show has anything to
do with *setting* a status.

You can add ':archive_shipped' to this (and presumably to the DB
schema),

>   enum status: [ :in_progress, :on_hold, :cancelled, :shipped ]

but where is the status set to start with?

Also, in passing, "before one year" and "after one year" probably
leaves a day in the middle ("exactly one year") when things will be
at the least indeterminate. FWIW.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCHy48iVQeCGxy8c67x6HUhomnyCL7KWHbG_R1HwXOaBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Easiest way to deploy to VM?

2018-08-16 Thread Hassan Schroeder
On Thu, Aug 16, 2018 at 3:32 PM, j...@via.net  wrote:
> If I do that, will it blindly overwrite files that I've modified like the
> routes file?

1. No
2. It wouldn't matter because _of course_ you're using Git*, right?
* or comparable source code control system

And if you're not -- start now before you do *anything* else  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCPP7O_vNXmJJGhtxwKW1FkR0GYU%3D1OG9tQoaHCdKG%2B%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Setup lograge, logstash-logger

2018-08-16 Thread Hassan Schroeder
On Thu, Aug 16, 2018 at 1:04 AM, belgoros  wrote:

> Yeas, I knew that. I tried both tcp and udp, none of them worked. The only
> one that works is when I specify the type as file:
>
> config.lograge.logger = LogStashLogger.new(type: :file, path:
> 'log/development.log', sync: true)

Taking "lograge" out of the picture for the moment, using this config:

  config.logger = LogStashLogger.new(type: :udp, host: '127.0.0.1',
port: 5228, verify_hostname: false)

> This way the logs shall be written in Logstash format in development.log.
> The question I have not found the answer to is what host and port values
> should correspond to ? Are they the values of Logstash server ?

I do this below in a Rails console:

Loading development environment (Rails 5.2.1)
2.5.1 (main):0 > Rails.logger.info("test message from a rails app")
=> true
2.5.1 (main):0 > Rails.logger.flush()
=> true
2.5.1 (main):0 >

with this test endpoint (Erlang, but that's not important)

Eshell V9.2  (abort with ^G)
1> {ok, Logstash} = gen_udp:open(5228, [binary, {active,false}]).
{ok,#Port<0.490>}
2> gen_udp:recv(Logstash, 0).
{ok,{{127,0,0,1},
 49369,
 <<"{\"message\":\"test message from a rails
app\",\"@timestamp\":\"2018-08-16T13:25:48.113-07:00\",\"@versio"...>>}}
3>

Note that nothing showed up on receiving end until I flushed the logger
on the Rails side, so that might have something to do with your testing
not apparently doing anything. But for sure, the `host` and `port` values
are for the remote logstash endpoint.

HTH!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAY6ncMEniFiyFPdFsoOMcNu3oZ3jz5%2BNhOf5DEcSRa_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Easiest way to deploy to VM?

2018-08-15 Thread Hassan Schroeder
On Wed, Aug 15, 2018 at 4:22 PM, j...@via.net  wrote:
> Can I run puma in production or do I ned to setup nginx?

Having a separate proxy like nginx or Apache httpd in front of your
app server (puma, unicorn, etc.) is definitely recommended.

A proxy can more efficiently serve static assets, handle your SSL
termination, redirect http -> https, return a static "sorry" page for
maintenance, drop obviously bogus requests (e.g. "admin.php"),
split requests to different applications based on the URL, etc., etc.

I've never run an app in production without one so  ¯\_(ツ)_/¯

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBthCAkUd5aD21a4p%3D6x-cnKbSv1P2YDES5yyitv6hSqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Easiest way to deploy to VM?

2018-08-15 Thread Hassan Schroeder
On Wed, Aug 15, 2018 at 2:21 PM, j...@via.net  wrote:
> Ok, so what's the easiest way to upgrade my rails 4.2.1 project to 4.2.10?

Edit your Gemfile entry for Rails and run `bundle install`. If all your
tests still pass you may want to fix any deprecation warnings just in
case you decide to upgrade beyond that (recommended).

You can also run `bundle outdated` to see what gems you might be
able to bring current.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAVKMDM43Eabtk3RfZ-_ROe_Yft3-gV61juATVXw1WGqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] email ID issue

2018-08-15 Thread Hassan Schroeder
On Wed, Aug 15, 2018 at 1:32 AM, Piyush Chowhan
 wrote:

>> What did you change between now and "previously"?

> I guess only just rails version. It was my older app.

"only just" LOL

Did you upgrade from the last previous major version? If so, did you
fix all the deprecation warnings?

Is this part of your code covered by tests? If not, writing them would
be a good next step...

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDrpp6u1jcRMuN-1TCyWmHmOhR-di3ftfSWfascgDhtRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] email ID issue

2018-08-14 Thread Hassan Schroeder
On Tue, Aug 14, 2018 at 3:09 AM, Piyush Chowhan
 wrote:

> I am facing this error in my application previously it was working

What did you change between now and "previously"?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAkDHk7vP7KrZYSPLt%2BAWtEYB6w8OoZ%2B4miMG-UHozNnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Setup lograge, logstash-logger

2018-08-14 Thread Hassan Schroeder
On Tue, Aug 14, 2018 at 6:21 AM, belgoros  wrote:

>> Can anybody provide some links to how to set up correctly Lograge,
>> logstash-logger with a Rails API app ? I followed their READMEs but still
>> nothing sent to Kibana :(.

>>   config.lograge.logger = LogStashLogger.new(host: ENV['logstash_host'],
>> port: ENV['logstash_port'], verify_hostname: false)

Never used either of these but had a little play.

My impression is that LogStashLogger defaults to a UDP connection,
so you might try with e.g.

LogStashLogger.new(type: :tcp, host: ENV['logstash_host'], ...)

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA-y6kh1x1AgNAheL-EdQ%2BtZU2U8EtuvLD4CLg9bxhpuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Easiest way to deploy to VM?

2018-08-13 Thread Hassan Schroeder
On Mon, Aug 13, 2018 at 10:07 AM, j...@via.net  wrote:
>
> Hah! I've been noodling with this for a couple years. It's Rails 4.2.1...

You can certainly use Puma with that version (in development as well),
but in the meantime I'd recommend upgrading to the last 4.2.x version
for the security fixes if nothing else.

(https://www.cvedetails.com/vulnerability-list/vendor_id-12043/product_id-22568/Rubyonrails-Ruby-On-Rails.html)

HTH,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBxrzp9wigBBYtwKpkYj9yC6Qmqi44%3Dr7-C-Cm3HzKqpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Easiest way to deploy to VM?

2018-08-13 Thread Hassan Schroeder
On Sun, Aug 12, 2018 at 9:17 PM, j...@via.net  wrote:
> I have a rails site that I have developed on my MAC. I have a Xen server
> that I want to spin up a VM and run the site on.
> What's the easiest way to get the site from my MAC to the Xen server and run
> it with a real web server - not webrick.

Wow, how old is this app? I think puma has been the default Rails
server since maybe 4.2? Or at least 5.0...

Regardless, most people deploy via Capistrano. It can be a little bit
fiddly to set up but once configured it's as simple as `cap deploy`.

HTH!
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCX7K_hw2i%2BjhUJskQMQcv_b-ecbMR6v64NTJTT2dfSMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] How to test Redis Lock via Rspec?

2018-08-09 Thread Hassan Schroeder
On Thu, Aug 9, 2018 at 3:32 AM, Saurav Kothari  wrote:

> We have a Lockable concern that allows for locks via Redis

> When testing this action, I want to test that the correct generated_key is
> being sent to Redis to initiate a lock.

What is the definition of "correct" here? Wouldn't it be easier to just
test the "correctness" of the producer of that key?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB5zxqeLOOHXJjt8ARcnGrqG3HRag4r9mPQX9J25T%3D0xQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Looking for help on how to incorporate Stripe into my existing files

2018-08-08 Thread Hassan Schroeder
On Tue, Aug 7, 2018 at 9:39 PM, David Merrick  wrote:
> I want to know how I can successfully put this part of the
> create method of the charges controller
> into the users create method of the users controller

What have you tried, and how was it unsuccessful?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC8V%3DUs_pLaT2_YnbABxVt7cohD5xuFv-FZV0YwC2-j0A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Postgres issue

2018-08-07 Thread Hassan Schroeder
On Mon, Aug 6, 2018 at 10:59 PM, Piyush Chowhan
 wrote:
> FATAL:  Peer authentication failed for user "admin"
> Couldn't create database for {"adapter"=>"postgresql",
> "encoding"=>"unicode", "database"=>"bookingsaround_diy_development",
> "username"=>"admin", "password"=>"password"}
> rake aborted!
> PG::ConnectionBad: FATAL:  Peer authentication failed for user "admin"

> Any help

Have you tried logging in from a shell with those credentials?

Did you really intend to use peer auth on your system? Postgres
offers a variety of authentication schemes; "trust" might be more
appropriate for dev work, but up to you.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAptYOP9F%2BSA-355%3D1Xaioj1yrMOzy0vr314k4R0MUwSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Best OS for production self hosting

2018-08-05 Thread Hassan Schroeder
On Sat, Aug 4, 2018 at 6:15 PM, fugee ohu  wrote:
> I've been hosting my rails apps on freebsd Anyone have preferences which OS
> to host on?

If you're responsible for configuration and maintenance, use what
you're familiar with :-)

Otherwise, it depends on how/where you're deploying -- bare metal,
VPS, Docker containers -- and personal preference. particularly on
package management.

For instance, Alpine Linux is a very small image, good for containers.

The Amazon Linux AMI is RedHat-based -- if you like RPM/yum as
a package manager and use AWS, perfect.

Ubuntu uses the Debian package management system, and there's
a lot of documentation/examples available.

And then there's all the BSD- and Solaris-derived options. I vote for
trying them all :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAC8mJ__UdD2aUPqPzsTvcHOt4HHkKR6OG6VfeKosudaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] devise users

2018-08-03 Thread Hassan Schroeder
On Fri, Aug 3, 2018 at 11:04 AM, Joe Guerra  wrote:
> Hi, just display the users on the webpage (so I don't have to refer to the
> raw database table).

Then a controller for that specific action is fine.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCNbdvHirsSZSgMLE0yq9hkt5gLe3cyHTghUQxLjeFpDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] devise users

2018-08-03 Thread Hassan Schroeder
On Fri, Aug 3, 2018 at 9:50 AM, Joe Guerra  wrote:
> I just want to dump my entire users listing from the users table

What do you mean by "dump"? to the screen, to a web page, to
a file (text, CSV)?

If it's other than a web page you can do it from the console. If it's
something you want to do frequently, write a rake task.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDcYYiGrzQ_9nK9dKQC_iy_3o8aexMYLs%3DNXa%3DfduUCMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] ransack replacement?

2018-08-02 Thread Hassan Schroeder
On Thu, Aug 2, 2018 at 10:39 AM, Joe Guerra  wrote:
> I justed jumped to using rails '5.2.0' in my app.
>
> Is that bad?

Depends on whether you think "can't even start" is a "bad" thing :-)

Jumping 3 versions like that is unlikely to ever work. The least
painful way to upgrade is to

1) move to the last available dot release of your current version
e.g. 4.2.8 -> 4.2.10

2) fix *all* the deprecation warnings

3) move up ONE major/minor version, e.g. latest 5.0  (5.0.7)

4) run your tests and fix anything that broke

5) run `bundle outdated` and see what gems are candidates for
being updated



-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAzFLh5KUdsjMSy%3DmbERd7rjwapuStETnOUqv%3DB4JV6wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] ransack replacement?

2018-08-02 Thread Hassan Schroeder
On Thu, Aug 2, 2018 at 8:20 AM, Joe Guerra  wrote:

>rails (= 5.2.0) was resolved to 5.2.0, which depends on

> That's my last heroku build :( which crashed.

>>> > the rails version I'm using (4.2.8)

What steps did you take to get from 4.2.8 to 5.2.0?

And does your app run locally?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBJC29prZJ6fo2hh7MeWURQ%3Dhb3StLsR616GE3qqqb19g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] ransack replacement?

2018-08-01 Thread Hassan Schroeder
On Wed, Aug 1, 2018 at 1:50 PM, Joe Guerra  wrote:
> Hi, what should I use to replace ransack with?  It's no longer supported in
> the rails version I'm using (4.2.8)

That Rails version is already unsupported, so maybe it's time to
address upgrading anyway :-)

> , and If I upgrade rails I'll break devise :(

? Why do you think that?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDHKrAKawqOviQRhLC%3DPnq4oGawGt38Kz9roVeqdh2JUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread Hassan Schroeder
On Wed, Aug 1, 2018 at 9:06 AM, John Sanderbeck  wrote:

> How do I define a set of radio buttons unique to each student

You'll need to include an identifier with each set of button names
(student id or something).

> with a set of options from an AttendanceStatus table?

If they're unlikely to change frequently or ever I'd just hardcode
them into the app. (You could always change that later.)

> I would also like to show them as actual buttons with bootstrap if possible...

Dunno -- bootstrap is just CSS right? I mean, we're talking about
"actual buttons" to start with...

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB_DULscW0SzUijt%2Bx4%2BV21Z2WWng5n2OKTg%3D07XK14Ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Need guidance on an inline editing design

2018-08-01 Thread Hassan Schroeder
On Wed, Aug 1, 2018 at 7:16 AM, John Sanderbeck  wrote:
> It will typically be a single class however the main secretary may go in to
> check attendance and she will see the entire school.

Is the "main secretary" *viewing* or *editing* the data?

If it's only viewing you can consider that a completely different use
case to provide for (and it might be presenting a list, a chart/graph,
a search-by-name, etc.).

Also, consider what should happen when the teacher has recorded
attendance and an "absent" student walks in late :-)

That said, you're describing a pretty basic form/CRUD pattern, so it
shouldn't be too difficult to implement.

Have fun!

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC2A96YKv-sOgh%3DSVw9arqDYmTyDVyB_7MkNhfNoKcdTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] something messed up my heroku build :(

2018-07-31 Thread Hassan Schroeder
On Tue, Jul 31, 2018 at 2:46 PM, Joe Guerra  wrote:
> after running bundle update, something doesn't work :(
>
> https://pastebin.com/aqjgKdRi
>
> something wrong with polyamorous rails?

Never heard of it, but the obvious next step is revert that update
and see what happens. If that fixes it, you need to go look at the
changelogs for that gem (at least).

Good luck,

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yD08XTWfVc1255zJYcM1ts48Y1eFJ4xjz5J4gigbXPD5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] something messed up my heroku build :(

2018-07-31 Thread Hassan Schroeder
On Tue, Jul 31, 2018 at 10:53 AM, Joe Guerra  wrote:
> It was never problem to build and compile on heroku, not sure what I messed
> up.

1. What did you change since you deployed last?

2. Can you run locally in production mode?

3. Have you tried the suggestion in the error message?

-> Detecting rake tasks
 !
 ! Could not detect rake tasks
 ! ensure you can run `$ bundle exec rake -P` against your app
 ! and using the production group of your Gemfile.
 ! rake aborted!

If so, what was the result?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBq3OUSf_khbObU4cqJ_CQ02ztsd12VeEgExJYMDVCpXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] mutliple domains / apps > postifx

2018-07-16 Thread Hassan Schroeder
On Mon, Jul 16, 2018 at 7:47 AM, tom  wrote:

> i was wondering if someone could point me in the right direction:
> i have 3 rails apps on the same server, each needs to send out emails. its
> all working, but app2 & app3 are sending under the domain name of app1,
> which is not good. how do you guys fix that?

I've never used Postfix but there's this:

 http://www.postfix.org/MULTI_INSTANCE_README.html

Alternatively, using a 3rd-party app (Mandrill, Sendgrid, Postmark)
lets you dispense with local configuration and more easily scale up
(change/add servers, etc.).

FWIW,
-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDO6WKh0caqJ8Rushp4o13dN%2BAUrJ7PLA8CFLfz3A_o7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] how can i convert a locale file to another language

2018-07-12 Thread Hassan Schroeder
On Thu, Jul 12, 2018 at 8:14 AM, fugee ohu  wrote:

> The keys aren't supposed to be utf8 I meant the whole yaml file It doesn't
> work in google translate, the keys get converted to utf8 along with white
> space and quotes My question is exactly what I asked

I have no idea what any of that is supposed to mean.

YAML keys can be UTF8.

Any google-translate-provided strings that I've tried work in locale files.

If you can't provide something to demonstrate the actual "problem",
then  ¯\_(ツ)_/¯

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBdgGhwZiPRnJNp6H-e%2Bkuq-Z1QL644-HGCQJ%2BOMwgfRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] how can i convert a locale file to another language

2018-07-10 Thread Hassan Schroeder
On Tue, Jul 10, 2018 at 9:19 AM, fugee ohu  wrote:
> All my keys have underscores if not in snake case then at the end  When I
> copy a file using google translate the colons, quotation marks and white
> spaces are all invalid yml cause they're not text, they're utf8 Anyone know
> another translator to use?

It would be a pretty sad "internationalization" system that didn't allow
UTF-8 characters, so -- spoiler alert -- there's no problem with UTF-8
in YAML locale files.

Maybe you can explain exactly what issue you're having, with sample
code?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAqRNv01Tv8P5Gcu7iP%2BHx79uN4o69TNMSum%3DzR7e7eGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] I'm seeing an unexpected environment variable dump

2018-07-09 Thread Hassan Schroeder
On Mon, Jul 9, 2018 at 8:57 AM, Ralph Shnelvar  wrote:

> I got a failure (the cause is as yet undetermined).  Here is, partially, the
> text (in orange) of the error message I got:
> We're sorry, but something went wrong.
>
> The issue has been logged for investigation. Please try again later.
> Technical details for the administrator of this website
> Error:
> Web application could not be started
> Error ID:
> 68b2c6fb
> Details:

That isn't a base Rails-generated error. Are you seeing this message
in the console/log or on a web page?

If the latter, I'd guess you're running Apache httpd + Passenger, so
there may be config options there beyond what Rails provides.

> Comments, please.

If running in development mode, dumping env vars on error doesn't
seem particularly bad. (Passenger used to also do this in production
mode (!), though I'm told it no longer does.)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA46M_rOtA4ce3xfne%3Dyr_8eiNS%3DKbP7HWC5UD%3D8CFppA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Continuing in Rails Console

2018-07-09 Thread Hassan Schroeder
On Mon, Jul 9, 2018 at 9:51 AM, Ralph Shnelvar  wrote:

> I expect/expected the rails console to drop  into irb so it stops execution
> before Rails loads so that one can attempt to debug initialization.

When you start `rails console` and get the IRB prompt, Rails is
basically loaded at that point, so no.

And if Rails is broken, you probably won't get to the prompt anyway :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB4mwLADebRBDnyNqz-j63H8nBuKtonu1ZNBXmYfQ-TZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Continuing in Rails Console

2018-07-09 Thread Hassan Schroeder
On Mon, Jul 9, 2018 at 8:46 AM, Ralph Shnelvar  wrote:

> I am still at a loss how to continue execution at the irb prompt.

REPL stands for "read–eval–print loop" -- irb is waiting to *read*
some input to *eval* and *print*.

Using the word "continue" here is meaningless.

Maybe describe what you're hoping to achieve using the console?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCnKS3JCUbdND-dQR753itJrjONnq%2BiBf71M4dBW9j15w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Continuing in Rails Console

2018-07-09 Thread Hassan Schroeder
On Mon, Jul 9, 2018 at 6:54 AM, Ralph Shnelvar  wrote:

> From an Ubuntu command prompt I write
>  rails c
>
> and I get
>
> Loading development environment (Rails 5.2.0)
> irb(main):001:0>

> irb(main):003:0> 2+3
> => 5

> How does one continue execution?

?? "irb" stands for Interactive RuBy -- like any REPL it's waiting
for YOU to enter something for it to do, like add 2 + 3 above.

> What commands are available from the irb command prompt?

Ruby/Rails methods.

Do you have an ActiveRecord class 'Thing'? Then you can do
e.g. `Thing.where(color: 'red')` and so on.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB3CO7Jr-zYt9DJHdpL-qUEq9uqStZe0pvUcX6m96KE%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] OT: Two or more Rails Apps & Apache

2018-07-07 Thread Hassan Schroeder
On Sat, Jul 7, 2018 at 1:12 PM, Ralph Shnelvar  wrote:

> I start Apache via ...
>  sudo apache2ctl start

But that's not starting Rails, unless you're running it via CGI
which TBH is something I've never seen. Generally you'd be
using mod_proxy to forward requests to your Rails apps.

> In terms of sites-available ... where do I find the default host?
> I do see something called
>  /etc/apache2/sites-available

You probably have a file called ~ '000-default.conf' with the
directive  -- notice the lack of hostname
and the wildcard * where you'd expect a name.

> Does Apache look at all the *.conf files? If not, how does it know which
> .conf file to look at?

It loads all config at initialization and then matches the http request
Host header to the server name.

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCagovXDtZkdRuaqPrJHo1Wuct5R%3DkEJ_0rf%3DmAMyK2vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] OT: Two or more Rails Apps & Apache

2018-07-07 Thread Hassan Schroeder
On Sat, Jul 7, 2018 at 12:10 PM, Ralph Shnelvar  wrote:

> I don't think I am using anything but Apache and Rails.
>
> How can I tell?

How do you start your app on this server? `rails s` or ... ?

> One of the things that is confusing me is I have a file
>  /etc/apache2/sites-available/ThisWorks.com.conf
>
> How does Apache know which *.conf file to use?

The VirtualHost/ServerName/ServerAlias directives -- if you tried
to access a different hostname on that same IP address it would
just show the default host (from sites-available).

> Is there a book you can point me at that goes through this stuff in much
> greater detail?

I have no idea about a book; there are probably lots of tutorials out
there. The config files are super well-commented, though, and I'd
just start there, along with the online docs.

Note: the Apache httpd is based on Rob McCool's original NCSA
server circa 1993 so it's pretty "battle-tested" and that includes the
documentation :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCuZcDhLgNcS%3DEB7A-3bjvaTjt8Um1cNVCjbtph%3DLucbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] OT: Two or more Rails Apps & Apache

2018-07-07 Thread Hassan Schroeder
On Sat, Jul 7, 2018 at 10:22 AM, Ralph Shnelvar  wrote:

> I'm not sure what "different virtual hosts" means.

> What I have are two domains I have purchased.  Call them www.ThisWorks.com
> and www.ThisIsNewAndDoesNotWorkYet.com.

A single Apache httpd instance listening on a single IP address can
handle multiple "virtual hosts", e.g. different domains as above.

  https://httpd.apache.org/docs/2.4/vhosts/

The question is how are you doing the current single domain? Are
you using mod_proxy to forward to an app running on e.g. Puma,
or are you using Passenger?

If the former, it's easy to have each virtual host have its own proxy
settings defined.

  https://httpd.apache.org/docs/2.4/mod/mod_proxy.html

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA4Frh5n4V7HZ2_toLa8eMQEWmSRS900%2BZtLeq_VTmpVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Multiple migrations have the name CreateCkeditorAssets

2018-07-07 Thread Hassan Schroeder
On Fri, Jul 6, 2018 at 7:43 AM, tom  wrote:

> i am getting this on my production server.
> locally all is good.
> i have removed the gem from gem file, reverted back all changes. deleted
> migration file. removed table entry in schema_migrations. empty git repo,
> unistalled all chkeditor gems.

All of that seems unnecessary if your app works in development.

> but when i deploy, i still get the error. any ideas?

How are you deploying? Do you have a stack trace with that error?

Are you absolutely certain the branch you're deploying is the one
that's working in development?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yAEJ2gcV_JEhuL6Dd-hK2gLQUmP8tC0vtRY__QdMUL2pg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] OT: Two or more Rails Apps & Apache

2018-07-07 Thread Hassan Schroeder
On Sat, Jul 7, 2018 at 9:08 AM, Ralph Shnelvar  wrote:

> Right now I'm clueless how to run two Rails apps in an Apache environment.

How are you running the one app via httpd now?

What does running two look like? Different virtual hosts? Same host
name, different URL patterns?

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
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 email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC4_GPdF_TxTuu4NLVghNJO3y9XMGCK_rukZkEbYZtT3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   6   7   8   9   10   >