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

2018-08-10 Thread Mugurel Chirica
Hey David, looks like you did not configure your application properly.

What gem do you use for stripe, there should be a way for you to configure
the app, have a look at the documentation.

You will need to create a Stripe account, get the API keys from there and
add them to your application, with something like
`config/initializers/stripe.rb' (depending on what gem you use).

-- 
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/CAL37D8G3brJ%2Bag0CH50Wk-hBCpnQfrx28iKu3YyEkeoHj-eO5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Looking for something like Pay Pal that is more suited to Rails

2018-08-10 Thread Mugurel Chirica
Hello David, thanks for asking for my help.

Based on the details you provided, you are asking quite a general task and
I can't help you that much.

I don't know what's your experience you have with Ruby on Rails in general,
but the best thing I can do is to give you general development suggestions.

Try and write down what you are trying to achieve and then break everything
in small steps, and document that as an algorithm.
Usually when I have something that's too complex to wrap my head around I
do something like this in the controller or whatever.

---
# Add stripe
# Create stripe account
# Get stripe credentials
# Add stripe gem
(...)
# Connect stripe account to existing user
---

After you have your initial list, you can break down everything and retry
the steps.

This list is best to offer specific help, and answer specific questions
that do not require too much set-up from us (some might be busy enough, and
have small window of time to check the email, etc).

To get help for big problems the best thing would be to pair program with
someone.
You can either pay someone for their time and they can pair with you (you
can search on google, there are various sites), or try and ask for someone
to pair with you on a different channel like on this mailing list, or an
IRC channel.

Sorry I could not be of much help, but good luck with your task.
Don't give up, if things are hard, take smaller chunks to work on from the
task.

Cheers

-- 
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/CAL37D8Fdvt2%3DK%3DAP1txRm5Z-PVDAEN-n1UJ5LKjBFHw7o6BZow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Looking for something like Pay Pal that is more suited to Rails

2018-06-26 Thread Mugurel Chirica
Choosing a payment provider it's difficult and depends mostly on your needs.

If you are more interested to get up and running with payments with not so
many issues, then I recommend you to use https://stripe.com.

Working with it is great in my opinion (compared with other payment
providers), and l have heard other developers enjoy working with it as well.
The documentation is great, there are many tutorials, and getting started
(without too much customisation) is very easy.
Also their taxes are not that bad either.

Hope that helps.

-- 
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/CAL37D8EHFS89U-%3Dzx8heVW0Nz%3D0cmSE5wGMnjXes_R261GvEXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] OT: Good places to look for remote Rails contract jobs?

2018-06-07 Thread Mugurel Chirica
Hello Ralpth, you can also try freelancing sites, like Toptal (they have
like a lengthy getting in process, but I heard it's worth it), or sites
like Upwork.

Depending on what you are looking for in terms of work type and length of
time, you can find new projects everytime, or maybe find like a client that
has many projects, as long as you make sure you are not taking any risks.

That's not for everyone though and i don't know your experience, so if you
are interested to find out more give me a mail and we can talk.

Cheers

-- 
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/CAL37D8HiMO6cu_17PwLtd3v0y6Joh8znbJcrcj8B0axXxBpp7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Docker

2018-05-17 Thread Mugurel Chirica
Hello Joe, to answer your question, yes.

I have recently started playing with docker and can tell you that it's
quite straight forward and works well with Ubuntu 14 - 16, and here is the
big picture.

You will create a Docker file and a Docker-compose file, and write a
specific set of instructions of what to install on your image and what
ports you will open etc.

My colleague has more experience and he set up the files etc, and I just
ran the commands which worked well, but you can create all those with a
good tutorial.
The same files and some variants of those will be used to create the image
on production.

Using that setup you can develop locally, and then when you need you can
deploy to something more general like AWS using their integrations, or
something more specific like a hosting created for Docker only.

Give everything a try and find a few good tutorials to follow (there's also
an on-line free version docker book) and see if you like it.

Cheers

-- 
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/CAL37D8G_BMJ7XCtRMFgjEdsfyAjCw-gMu_yCSXuK5KWjat5%3DDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Equivalent "sunset policy" for Ruby?

2018-04-05 Thread Mugurel Chirica
Hello Walter,

Is this what you are looking for?

https://www.ruby-lang.org/en/downloads/branches/
https://www.ruby-lang.org/en/downloads/releases/

Cheers

-- 
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/CAL37D8EdNCtOrnYu81_-brRFuVgN0Ezr6edgwSYj4wkHB4%2BpiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Anonymous survey - your help is greatly appreciated

2018-03-27 Thread Mugurel Chirica
Hello everyone, I'd like to have a better idea (that's up to date and real,
not possibly fake data) of how much Web Developers / Programmers in
different parts of the world are paid.

If anyone has 20 - 60 seconds to spare and fill the anonymous survey, it
will be very helpful.

You will find the survey here:
https://goo.gl/forms/gzNw7PWc3h9hWnTL2

After I get enough answers I'll also share the results in here, so others
could benefit form it as well.

Thank you very much.

-- 
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/CAL37D8FB9woGmLKKDuoRG%3D6_jTmMwf-nfQ8SPy1Yv8R2knaSPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] help me debug this model

2018-03-27 Thread Mugurel Chirica
What have you tried so far in debugging this?

Have you used any debugger like pry to see what happens when you rune the
code?

-- 
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/CAL37D8Fj5oHW2Q2uhdVuSkaC69eCoZywfvR3K4-KpABhTof65w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] How to start contributing to the Rails code?

2018-03-15 Thread Mugurel Chirica
First try: https://github.com/rails/rails/labels/good-first-patch

If you can't find anything to contribute to Rails (since it's a very
complex project), try and look for another OS software to contribute to.

Try this: https://github.com/MunGell/awesome-for-beginners

Good luck with your task!

-- 
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/CAL37D8FNM2f8sev%2BL-zHOmRMq_e-9tsxSa7VyDv%3DB7MCvotyKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] How can we access current_model (Devise:Here model can be User,Account etc.) method inside AR model?

2018-01-26 Thread Mugurel Chirica
It would help if you can share the actual code, maybe we can get a better
idea of what you want to achieve.

-- 
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/CAL37D8EgNR6_7mwq-dBOYYj%2BUKzuA2eJjVDh7xvGotbFMYVgOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Publify

2018-01-03 Thread Mugurel Chirica
Can you please provide more details?

What have you tried, what error did you get, can you show us the
configuration file?

Cheers

-- 
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/CAL37D8Ep9FYANfpDO0r1UMuvafD-Li4qz_MfYGdSVPUN6DXE3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] page unaffected by application.scss

2017-12-07 Thread Mugurel Chirica
Seems that the css on the specific page takes precedence over your
application.scss.

In order to verify this you can add an element with an id in your specific
page, something like Test, and add css for it in your
application.scss, something like #page_test { color: red; }.
If that does not work, something happens and your page does not load
application.scss and we need more info to help.
If that works then you are probably not selecting the correct element, or
the page selectors are heavier than what you have described.

Also, use your browser's inspecting tool, in Chrome right-click and inspect
element, then select your element that you want to style and see what rules
are applied and if your rules are there.

There might be other issues but try these first and see what they do.

If you still have that issues please add code for your application.scss and
template, and we'll see from there.

-- 
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/CAL37D8EzfWpzkSoGZHXfbkpVH3qZYahbGrsjbN%2BzoX8arzLMBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] NewRelic replacement?

2017-11-28 Thread Mugurel Chirica
I am currently using NewRelic for a Rails production project, around 5 EC2
servers, and the pricing for a non-free account is extremely bad (personal
opinion) while of course the free account is no good since the data only
sticks around for 1 day.

Does anyone have any experience with any alternatives to NewRelic that they
used in a production environment successfully?

After doing research on the topic I found many alternatives and a strong
contender, but I would like to get some opinions for someone that I know
for sure (hopefully) used the service themselves.

Cheers.

-- 
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/CAL37D8How7vTBTT8pME6-OPUQo3wQhZm-6C9gmGG7VG3gsV_hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Suggestion for open source projects to learn

2017-11-24 Thread Mugurel Chirica
Hello Chatty, I had a look at the project and it looks fun.

Can you tell me what kind of help do you need with the project?

Cheers.

-- 
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/CAL37D8HNUokCPPPVg6eD8ZMt6xfFQk8QpWsQ2uQzja480eo%2Bxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] CSS question.

2017-11-11 Thread Mugurel Chirica
For HTML/CSS questions you can use https://jsfiddle.net/ (or something else
that's similar in functionality), add your HTML and CSS in there and we can
all have a look.
If someone can solve the issue they can update the code from jsfiddle and
give you the solution.

If that's too much then can you share some screenshots with how is the page
looking right now with the above code, and how do you expect it to look (to
achieve the result you can tweak the CSS from any browser inspector.

-- 
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/CAL37D8GCQdAm0tK%3D2fP_MEct570r0ivnJ_GBJ_HTPoizv9wREQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] drop down hover bootstrap

2017-11-11 Thread Mugurel Chirica
The best place to start is to completely read the Readme section for the
plugin you are trying to use,
https://github.com/CWSpear/bootstrap-hover-dropdown and after that try
again and implement it on your website.

Check the console without the plugin to see if you get any turbo links
errors, if you don't get any error proceed with integrating the plugin with
your new knowledge from the Readme document.

If it's not working, then check the console again, if you get any new
errors you are probably missing something and need to fix those js errors
(make sure you check the gem dependencies as well).


ok, I just tried $('.dropdown-toggle').dropdownHover(options); and I get ...
> VM155:1 Uncaught ReferenceError: options is not defined
> at :1:37


Yes, that's true because I gave you the example from the Readme, you need
to customise it for your code.

$('YOUR_CLASS').dropdownHover({YOUR_OPTION: VALUE});

Ex: $('.dropdown-toggle').dropdownHover({delay: 5000});


This will tell you if the JavaScript implementation was correct, if you
can't make that work in the console it's probably that.


After following all of the above steps you still can't make it work, I'll
ask for more details and try and help you get it working.

Cheers

-- 
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/CAL37D8EZPA59_db42OAoADp136WRgM13VKrFkC8-hrnz25U4oQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] drop down hover bootstrap

2017-11-11 Thread Mugurel Chirica
Did you try the steps I suggested?

-- 
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/CAL37D8EB%3D_NXHmTnHdBLj0s%2B9iOKmpvSS5y8P3E9rPsyTHx0Tw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] drop down hover bootstrap

2017-11-10 Thread Mugurel Chirica
Open the developer console (right click -> inspect in Chrome), and see if
you get any related errors.

Alternatively try and use the suggested command from the Readme:

$('.dropdown-toggle').dropdownHover(options);


See if that helps in any way.

-- 
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/CAL37D8GcAaL6Zi7EFJL2N95dwPu_%3DbeTVwU9t5iATf3gjcF5Og%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Turning URL varables into URLs

2017-10-31 Thread Mugurel Chirica
You can try something like this if the requirements match:

  match "/*path", to: redirect { |params, request|
>
> # Add your logic here or delegate the work to a specific class
>
>
>> # Proof of concept
>
> slug = 'jazz' # You get the slug from the params
>
> price_category = true # You deduce if the slug matches any of your tags
>
>

> if price_category
>
>   "/#{slug}?price=cheap"
>
> else
>
>   slug
>
> end
>
>
>>   }, via: :all
>
>
>

-- 
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/CAL37D8F36mDnbzEHfW4P4_9aLaKP12PJLJRkC3nNn__t%3DHu8XA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] [Job][Dundee, Scotland] Web developer using Ruby on Rails

2017-10-19 Thread Mugurel Chirica
If anyone is interested or know anyone interested get in touch (
chirica.mugu...@gmail.com), I'm one of the web developers.





Job Title: Web Developer

Contract/Permanent: Permanent only

Location of Role: Dundee (Remove not available)

YoYo Games, part of the Playtech family is the home of GameMaker: Studio™,
the fastest and friendliest cross-platform game development technology out
there. GameMaker Studio has been downloaded over 7 million times. We’re on
a mission to ensure game development is available to all.

ABOUT THE ROLE

As Web Developer, you will be responsible for developing and maintaining
YoYo Games' websites and online services, both internal and public-facing.
You will lead projects from a technical side and mentor more junior
developers assisting on projects.

The ideal candidate will have a passion for web development. Shall be
experienced working with JavaScript (NodeJS), Ruby on Rails, C# (MVC), No
Relational / No SQL databases and have the ability to work with multiple
open source Ecommerce/CMS solution depending on the project. Along with
solid technical experience it is essential you have excellent communication
and written skills to be able to document work, communicate with other
departments and lead / mentor others.


THE MAIN DUTIES AND RESPONSIBILITIES IN THIS ROLE WILL INCLUDE, BUT ARE NOT
LIMITED TO:

Design, develop and maintain all the YoYo Games websites and web APIs.
Backend product logic, server architecture and communication design.
Collaboration with business, technical and management teams on design and
development.
Creation and maintenance of admin and moderation tools for updating
content, product information and user accounts.
Server setup and maintenance across dedicated remote servers (RapidSwitch),
virtual cloud servers (Amazon EC2), databases (MySQL on RapidSwitch and
Amazon RDB) and cloud hosting (Amazon S3, MaxCDN).
SSL certificate management on multiple machines across all of the above
services.
Help mentor and grow the Web team.


EXPERIENCE

ESSENTIAL

Excellent and current knowledge of web development techniques, languages
and frameworks
2-3 or more years' web development experience in Ruby on Rails, PHP or
another server-side language
JavaScript (NodeJS), CSS3, HTML5
Linux command line (Ubuntu)
NoSQL, design and optimisation (Amazon DynamoDB experience a bonus)
Web server configuration (nginx, Apache)
Amazon AWS expertise
Back-end web development experience
Relevant work experience in online commerce environments, distributed
systems and/or developing large scale web applications
Payment process integration (PayPal, Ogone, etc)
Search engine setup (ElasticSearch)
Strong analytical, problem solving, and project management skills
Experience with automated deployment (Capistrano)
Experience working on the *nix command-line, both locally and on remote
servers
Knowledge of, or experience with, cloud-based services (Amazon EC2 and
S3/CloudFront, MaxCDN, etc.)
Source control (Git, Mercurial) and remote repositories (Github, Bitbucket,
etc.)
Dynamic stylesheet languages (SASS or Less)
Passionate about web development
Excellent time management and prioritisation skills
Highly organised with the ability to manage several projects at the same
time


DESIRABLE:

Computer Science/Web Computing/ equivalent degree
Thorough understanding of Ruby on Rails, or another MVC framework
One or more years’ experience with Ruby on Rails
Experience with eCommerce development
Experience with GameMaker: Studio™

-- 
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/CAL37D8Hn6_x1HvWHQNJxPt0NrQfRGfbkg%3D_S1CTrxp8r78%2BkEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: Need partners for hobby project

2017-10-08 Thread Mugurel Chirica
I think it's better for you privacy if you talk via direct email instead of
using the reply all button (or the variant you have) which sends an email
to all of us.

-- 
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/CAL37D8GOQA1Hm2LvFcfWo-HsadRUmOD5wY-Nci-cPjGzfnLZaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Re: notification message

2017-10-06 Thread Mugurel Chirica
You can post your solution, maybe it will help others in the future.

-- 
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/CAL37D8E1z3bgQL%2BhzLqe0Csa7_hVW9_ttUTnQ_T1nCSx%2BEQQJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Raty rate for Rails 5

2017-10-06 Thread Mugurel Chirica
What about finding a way to improve the original gem to support Rails 5?

-- 
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/CAL37D8HCB8TOO1Gx4W3ByYtqJ193qDUUqk9i1SLT1nmbjQYmwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Moving stand alone scripts into rails, architecture

2017-09-14 Thread Mugurel Chirica
Since I don't have too information about your scripts, I'll just guess some
things.

If the scripts are proved to work well (especially if you have unit tests
for them), I would recommend to keep them as they are or move them to a gem
and use them inside your rails app.

A very simple, proof of concept example:

  # Your already existing class
class ScrapeWebsite
  def initialize(url)
@url = url
  end

  def call
# Logic for parsing the page
# returns a string with the content
  end
end

# Controller
class EventsController
  def index
@events = Event.all
  end

  def create
data = ScrapeWebsite.new(params[:url]).call
Event.create(content: data)

flash[:success] = 'Data retrieved.'
redirect_to :back
  end
end

# ActiveRecord model
class Event < ActiveRecord::Base
  validates :content, presence: true
end

-- 
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/CAL37D8EJPprgSA8HFHVnLdUpvT_VVBxQpgEtacDuSMPkeeGjZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] unknown error on line 11

2017-09-13 Thread Mugurel Chirica
What have you tried so far?
Did you use a debugger to step through your code and see if you are missing
something?

-- 
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/CAL37D8G67sKeWr4kOHghU%3D-nN8hPvoHo6xyprjER-4q7Qm-qpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] mailboxer attachments

2017-07-29 Thread Mugurel Chirica
Hello Fugee, if you don't want to spend a few minutes to make your question
as complete as you can in order for us to help you, you might be perceived
as somebody that is not really interested to get an answer or only asking
questions without spending any of his energy to solve them first, even
though this is not probably the case.

Take some time to read this SO question, together with some answers to get
a better idea of how we as developers should ask for help (from junior to
senior).

https://workplace.stackexchange.com/questions/57500/told-ive-been-asking-too-many-questions-and-put-on-review

There are many excellent developers in this group that are very helpful out
of their own kindness, so we should try and not waste any of their time.
The time spend (5-10 minutes) that a developer will ask for clarification
could be spent on providing a solution when those clarifications are
already present.

Cheers.

-- 
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/CAL37D8G403Ct-ATENTb%2B2jgbo7XdE7%3DG6pfzMzrkvXXZDSE8zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] mailboxer attachments

2017-07-20 Thread Mugurel Chirica
What have you tried so far?

-- 
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/CAL37D8EprCXOXiuWPaS7H-RT%2BTntW-n94RvKzBm9T91cn%2Bk4qw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] newbie but 32 years old

2017-07-20 Thread Mugurel Chirica
This depends on you, if you are motivated and willing to work really hard
to learn everything you need then I would say that you have a high change.
You have two options:
1. Don't quit your day job and work all your free time to learn HTML/CSS
and then whatever path you want, in a few weeks/months you will know if
this is something you will be good at or not.
Keep in mind that in this field you will have to learn new things for the
rest of your life if you want to promote or sometimes even keep your job.
2. If you have some money set aside and you want to go all in, go all in.
Spend every time you can (at least 40 hours per week) on learning and in a
few months of work if you manage to understand the basics you will be able
to find a Junior web developer job or start doing freelancing looking for
opportunities.

My recommendation is to start with: https://www.codecademy.com/, do all
their HTML/CSS courses, then move to
https://www.freecodecamp.com/challenges/claim-your-front-end-development-certificate
.
Then depending on your learning style watch as many video courses or read
as many books as you can.

Once you have a basic understanding (you are able to create websites from
designs, PSD to HTML/CSS) you can move up to the next level.
If you want to have a better foundation for your knowledge but will be a
lot more difficult to get started learn Ruby for a few weeks then move to
Ruby on Rails (framework).
If you want an easier path but your understanding of things might be

If you only want to get by you could just learn HTML/CSS and some bits of
Javascript and do small website projects (there is still a market for that,
but the prices are low because it's a low entry point).
If you want to earn more and promote etc, you will have to learn to create
and maintain complex web apps which is a lot of work and takes ears to get
to a mid-senior level.
An IT career today might be hard (depending on what you want to do), but
the rewards in therms of motivation and money are very good.

-- 
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/CAL37D8GtFT2bO1nn_fkzmhSPuD%2ByZVJcs_Uw%2B%2BQp7v8YVDw2tA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] slow index action / search via ransack

2017-07-19 Thread Mugurel Chirica
This gem could help you rack-mini-profiler
.

Cheers

-- 
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/CAL37D8HQAn1ELar6RE91de2CwrUkKZrEZ_1LDzbYRg6BnCe%2BxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] Rspec =begin =end

2017-07-10 Thread Mugurel Chirica
That is a multi line ruby comment, but it's not that popular, you are
better off using multiple single line comments #comment.
The reason is there is so you can remove them and that block will have the
comments and the config.filter_run :focus (...) lines working properly.

-- 
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/CAL37D8GP1tV5Qi1R66n2d94zBNOi0%2BiTZuzyGN9ihQhFMExigg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] bootstrap

2017-07-09 Thread Mugurel Chirica
Walter has a good point.

You could give these colours a try:
https://bootswatch.com/

Or you could google for bootstrap themes (based on the version you use) and
you can find some professional themes that change more than colours but you
could keep your existing structure (or change it a little bit) to use them.

-- 
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/CAL37D8EVab4cHqaaTwd%3DH75aGex91mq2N%3DAAfwb0aC%2BKD1BWSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] sendgrid email?

2017-05-24 Thread Mugurel Chirica
It does have to originate from an email address if you want everything to
be legit and not market as spam.

A solution would be to have something like 'notif...@yoursite.com' that
will send the email and let the user know that it originated from another
user.

Cheers, Bud.

-- 
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/CAL37D8F_%2Bb9kUeRf7Kr5yxtwbGF8_uNCxO0cCNVWca1ckpTZmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] migration problems

2017-04-27 Thread Mugurel Chirica
Can you share some code? There are more changes to receive help that way.

-- 
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/CAL37D8FYW58p%3DWLp7mFV5ho8AKSzR7eOrhdSaeA0kk9pPTWosw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] form_for with url and params

2017-04-22 Thread Mugurel Chirica
You can find more information for 'form_for' straight from the source:

http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html

Cheers

-- 
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/CAL37D8EbS%3Dk9RW3SG3%2Br7wKi7GmhNxRQNPrbye48oWuMUyiHvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Rails] Rails or Ruby conference / group meeting in UK/Scotland?

2017-04-21 Thread Mugurel Chirica
Hello,
Does anyone knows if there is any Rails/ Ruby / Web / SysOps conference
this year in UK or Scotland?

Any big user group meeting can work as well.

Thank you very much.

-- 
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/CAL37D8FAeo-2DHMqCuYY7%3DP1dN7VypzyvQszz3%3DGso2Ym9Q-Hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Rails] no method for nill class

2017-04-21 Thread Mugurel Chirica
Another very good option is to learn to use a debugger (that can help you a
lot until you learn Ruby / Rails better, but it can be useful then as
well), is to have a look at Pry
https://github.com/deivid-rodriguez/pry-byebug or for ruby 1.9.3
https://github.com/nixme/pry-debugger.

You will need maybe 1-2 hours to set it up and learn to use it, but after
that you will get answer to questions like the above in a few seconds or
minutes depending on the problem.

Cheers

-- 
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/CAL37D8En0x5zBszJnmCOUx%3Dmez5ZzfVWEs5d56wdHPT7%2BPgZWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.