Ruby on Rails Tuesday, February 28, 2017

Welcome, Andres,

You ask a very common question; here's what I would suggest beyond the usual RailsTutorial, Agile Web Dev in RoR, and Rails 4 in Action books.

First, Joe's suggestion to join an existing project is a very good one. It's easier said than done, of course, there aren't many that just spring to mind, but there's a few:

1. Rails, itself; learning how Rails works and contributing to its development will teach a lot
2. Head over to http://www.opensourcerails.com/ to see a bunch of OSS Rails applications

Other books that may help:

1. POODR (Sandi Metz)
2. Eloquent Ruby (Ross Olsen)
3. The Well-Grounded Rubyist (David Black)
4. Practicing Rails (Justin Weiss)

Ante up the $9 and watch all you can of RailsCasts, even though many are old, the concepts are still invaluable.

Head over to Avdi Grimm's RubyTapas site and sign up; Avdi is offering some great deals on some coproductions with others, as well as a his own great set of small plates of ruby wisdom.

Learn more about Database design; Date's books on understanding relational calculus are quite helpful, but very expensive since they're university textbooks. I hope someone has some good suggestions here.

Learn about the frontend design enough to be able to talk to frontend developers and designers. It's a language we all need to share.

Find a local Rails / Ruby user group, meetup, etc. Get involved in the local development community.

And practice, practice, practice. Create toy apps, learn about N+1 problems, using state machines / workflow processes, form objects, service objects, background jobs, accessing other web services / APIs, writing APIs, debugging your applications, deploying Rails applications in various environments, ....     

so much to learn

Tamara





On Tue, Feb 28, 2017 at 3:11 PM Joe Guerra <JGuerra@jginfosys.com> wrote:
Join an open source project.  Or create your own rails app.  You'll learn way more by doing than by reading about it.



On Tuesday, February 28, 2017 at 3:34:57 PM UTC-5, Andres Coppola wrote:
Hello everyone, I'm new at this group and i'm very glad I found it.  My name is Andres, and I has been learning rails since the last year. I have read a lot about CRUD operation, models, controllers, views, helpers, ActiveMailer and a few thing of ActibeJobs, but i want to go deeper than that. Can you give some advise about what to read/watch? It could be books, videos, courses (free or at least cheap ones).  Any help would be good. Thank you!

--
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+unsubscribe@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/c2c27b59-b19d-4638-9e55-1ad721fae696%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CAHUC_t_ZNZ%3D%3DhcHFAY6gBC7ef%2Bsd88djYX-gMqUpyOTfeajsKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

When you redirect, you lose all of the current environment (including the error, why it happened, etc.). This is almost never what you want to do. You want to fall through to re-render the form, and it will properly display the error messages and allow the user to recover without re-entering all of the data again. Use the rails scaffold command to make a new model/controller/view. Look at what it does. This is the expected behavior that you differ from at your peril!

Walter

> On Feb 28, 2017, at 10:51 AM, Joe Guerra <jguerra@jginfosys.com> wrote:
>
> I think you can use :back.
>
> redirect_to :back
>
> On Friday, February 24, 2017 at 1:10:31 PM UTC-5, fugee ohu wrote:
> my controller is user_posts_controller.rb
> it's views are in /app/views/user/posts
>
> when a form submission fails to save the object i wanna redirect back to the custom pathed form i came from but the controller code has render :new
>
> how do i redirect to the calling path of new and pass parameters
>
> --
> 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+unsubscribe@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/a613cd5b-b474-41ee-85cb-42da2f274d54%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/F9CB9153-83B8-4539-A93C-B7A3AED6FCD5%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Join an open source project.  Or create your own rails app.  You'll learn way more by doing than by reading about it.



On Tuesday, February 28, 2017 at 3:34:57 PM UTC-5, Andres Coppola wrote:
Hello everyone, I'm new at this group and i'm very glad I found it.  My name is Andres, and I has been learning rails since the last year. I have read a lot about CRUD operation, models, controllers, views, helpers, ActiveMailer and a few thing of ActibeJobs, but i want to go deeper than that. Can you give some advise about what to read/watch? It could be books, videos, courses (free or at least cheap ones).  Any help would be good. Thank you!

--
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+unsubscribe@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/c2c27b59-b19d-4638-9e55-1ad721fae696%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hello everyone, I'm new at this group and i'm very glad I found it.  My name is Andres, and I has been learning rails since the last year. I have read a lot about CRUD operation, models, controllers, views, helpers, ActiveMailer and a few thing of ActibeJobs, but i want to go deeper than that. Can you give some advise about what to read/watch? It could be books, videos, courses (free or at least cheap ones).  Any help would be good. Thank you!

--
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+unsubscribe@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/4571a202-dda8-4147-bba6-eecb886d0931%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

I think you can use :back.

redirect_to :back

On Friday, February 24, 2017 at 1:10:31 PM UTC-5, fugee ohu wrote:
my controller is user_posts_controller.rb
it's views are in /app/views/user/posts

when a form submission fails to save the object i wanna redirect back to the custom pathed form i came from but the controller code has render :new

how do i redirect to the calling path of new and pass parameters

--
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+unsubscribe@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/a613cd5b-b474-41ee-85cb-42da2f274d54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

I finally got it working.  I went to a local ruby on rails meetup and got some help on the issue.

I needed to use current_user.id and params[:product_id]  for my parameters in my function.

Thanks,
Joe

On Thursday, February 16, 2017 at 5:51:29 PM UTC-5, Walter Lee Davis wrote:

> On Feb 16, 2017, at 9:27 AM, Joe Guerra <jgu...@jginfosys.com> wrote:
>
> ok, still confused....  
> I've defined my parms like this...
>
> def cart_params
>   # params.fetch(:cart, {})
>   params.require(:cart).permit(:user_id,  :product_id )
>
>
> end
>  
>
> Have this in my controller.
>
> def add_to_cart
>
>   product_id = params['id']
>   user_id = session['user_id']
>   @cart = Cart.new(user_id, product_id)
>
> end
>

Try this:

product_id = cart_params[:product_id]
user_id = session['user_id']
@cart = Cart.new(user_id, product_id)

Not clear what params[:id] would be set to in your example, but you went out of your way to whitelist cart[product_id], so that's what I think you should use.

Walter

>
> Not sure what to put in the show page, to pass these values to the controller.  
>
> I've got a few rails books, and not one of them cover this.  
>
>
>
> On Thursday, February 16, 2017 at 12:18:38 AM UTC-5, Scott Jacobsen wrote:
> Controller action methods do not take parameters. You get the parameters from the `params` hash. Also, as was mentioned, do not send user_id as a param. It is a security error, and you don't need to because you can access the session in the controller:
>
> def add_to_cart
>   product_id = params["product_id"]
>   user_id = session["user_id"]
>   @cart = Cart.new(user_id, product_id)
>   ...
> end
>
> On Wednesday, February 15, 2017 at 5:11:02 PM UTC-7, Joe Guerra wrote:
> I am pretty close to figuring this out...
>
> I've got this in my product show page....I'm trying to pass user_id & product_id to my products controller, add_to_cart method...
>
>
> <%= button_to  'Add to Cart', {:controller => "products", :action => "add_to_cart", :user_id=> session[:user_id], :product_id => @id   } , :method=>:post  %>
>
> on the controller...
>
> def add_to_cart(user_id, product_id)
>
>
>     @cart = Cart.new(user_id, product_id )
> #
>
> end
>
> I get the error,
> "wrong number of arguments (given 0, expected 2)"
>
>
>
>
>
> Any suggestions?
>
> Thanks,
>
> Joe
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f62d02c7-7059-425b-b810-cb28a8d8f392%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/02dd1ea0-6de0-4c59-882a-e66def462ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Monday, February 27, 2017

Hi guys,

I'm looking for a job as a Ruby/Ruby on Rails Developer.
I have 2 years of experience and several completed commercial projects.

Location: Moscow (Russia)
Linkedin: www.linkedin.com/in/pavel1985/?locale=en_US
GitHub: github.com/Pavel-A-S
English skills: I think people can understand me :-)

P.S. I will be glad to answer any questions - pavel.a.s.1985@gmail.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@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/67010ba5-5443-4b07-a83e-6bdf203dbebb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Saturday, February 25, 2017

After an error, you really don't want to redirect, just re-render. That's how you keep all the request variables alive. If you need to render a different form from a different path, just pass in that path to your controller. Remember, in the error side of the if/else, there is an implicit render template: [:new or :edit]. So you can also write render template: 'path/to/custom/view' there. The rest of the variables will already be there.

Walter

> On Feb 24, 2017, at 1:10 PM, fugee ohu <fugee279@gmail.com> wrote:
>
> my controller is user_posts_controller.rb
> it's views are in /app/views/user/posts
>
> when a form submission fails to save the object i wanna redirect back to the custom pathed form i came from but the controller code has render :new
>
> how do i redirect to the calling path of new and pass parameters
>
> --
> 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+unsubscribe@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/7d236498-eaa6-4eed-8007-0f02acba3b99%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/4140E2A5-7236-4EB3-B5AF-F9E33AB68EA7%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Friday, February 24, 2017

Hello all,

Looking for freelancing work in ruby on rails, i have about 3+ years of experience in it.

Thanks and Regards
Etika Ahuja

--
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+unsubscribe@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/d2b5616e-caca-4694-9c7e-4793d3edc8d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi everyone,

I am happy to announce that Rails 5.0.2.rc1 has been released.

If no regressions are found, expect the final release on Wednesday, March 1, 2017.
If you find one, please open an [issue on GitHub](https://github.com/rails/rails/issues/new)
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

## CHANGES since 5.0.1

To view the changes for each gem, please read the changelogs on GitHub:


*Full listing*

To see the full list of changes, [check out all the commits on

## SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-256 hashes.

Here are the checksums for 5.0.2.rc1:

```
$ shasum -a 256 *-5.0.2.rc1.gem
89e447f43e924c465d4bc19efe333e67966daddb3d163cf6cf9b324578628811  actioncable-5.0.2.rc1.gem
56621e6cea32533f15ae0abab1c3a385c4f0b92f3eab2f3e6e6a292f41a3d8f4  actionmailer-5.0.2.rc1.gem
deacc6b0c965d73adf2259fca2d2e81dd27ed81402e742fd6b70210b6970dd0c  actionpack-5.0.2.rc1.gem
f0e55b9cc876f55dd4d1585a65db8f4b15b3e90ad4e65cc1f3e2dfe893da4460  actionview-5.0.2.rc1.gem
23ffc888458274eb251b181d9a8457f8aea2ee1307815809c5fa087f016cc2ea  activejob-5.0.2.rc1.gem
b56723d63d8cb5bea72318162a97c6b9062ced57f784252434a562b964eebeb5  activemodel-5.0.2.rc1.gem
e5821ea73f6ad65c5f26c236fec5bd443f962b8f6caa22b277fc2654c0cbf137  activerecord-5.0.2.rc1.gem
e35c127ae13bb87f10ef2e39661586103619e963b9135f66bfa076a9378fa222  activesupport-5.0.2.rc1.gem
a7e221850b4ba50150d814c12750b559b2bf20c164cad3f647e8c7b41da267ed  rails-5.0.2.rc1.gem
e14777d86c544f7c368f02b8e6d805cdc3bd62c40245ddb4c0f438220437e73a  railties-5.0.2.rc1.gem

```

As always, huge thanks to the many contributors who helped with this release.

--
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+unsubscribe@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/CAC9YFzfUZuJw%2B-hD-KDVhbbQaCwJ_ewNbK2NF%3DvoNoDEQeanLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

my controller is user_posts_controller.rb
it's views are in /app/views/user/posts

when a form submission fails to save the object i wanna redirect back to the custom pathed form i came from but the controller code has render :new

how do i redirect to the calling path of new and pass parameters

--
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+unsubscribe@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/7d236498-eaa6-4eed-8007-0f02acba3b99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi All, 

Urgent opening!!!

Role: Senior Ruby on Rails

Location: Rockville, MD

 

Duration: 6 mos to a year contract with the option to become Perm.

Interview type: Telephonic (SKYPE) followed by Face to face (Mandatory)

• Design and develop Ruby modules and REST web services with Sinatra or Ruby on Rails frameworks

• Deliver high quality code tested with RSpec and Cucumber

• Analyze and interpret complex requirements from scientists and doctors

• Introduce new technologies and best practices as needed to solve business problems

• Be a part of development team to create practical solutions in Agile/DevOps environment

• Be an expert to research and identify technical solution and be a mentor to junior staff

 

REQUIRED QUALIFICATIONS

• Excited about creating amazing application with cutting-edge environment

• Expert knowledge of Ruby • Minimum of six (6) years of relevant software development experience

• Extensive knowledge of RESTful and/or SOAP web services development

• Experience with Sinatra, Ruby on Rails, or other application frameworks on Linux environment

• Experience on Angular.JS

• Passionate about object-oriented programming with strong design skills

• Excellent problem solving skills

• Take ownership and work independently on a large portion of a project with minimal supervision

• Ability to work effectively with a team on complex projects with strict requirements

• Strong communication (written and verbal) and organizational skills

•Master's Degree and will sometimes accept  Bachelor's degree in Computer Science, Information Systems, Engineering or  similar.

• Must be able to obtain Public Trust security clearance

PREFERRED QUALIFICATIONS

Experience with NoSQL databases such as MongoDB is preferred

• Experience with continuous integration, Jenkins, code quality tools,

• Knowledge of test driven development, test frameworks like RSpec and Cucumber

• Knowledge of front end technologies like JavaScript, AngularJS, AJAX, JSON, jQuery is a plus

• Comfortable with version control systems like GIT or SVN, and bug tracking systems such as JIRA

• Ability in formulating and implementing IT solutions to meet business requirements

 

 

 

Regards,

Farhana

Resource Manager 

Metasense, Inc.

NJ Minority Certified Company
403 Commerce Lane, Suite # 5

West Berlin, NJ 08091

Phone: (508)203-1975

Fax: (856) 475-0555

farhana@metasenseusa.com

www.metasenseusa.com

www.metasenseinc.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@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/5a0ce165-63e1-4606-987c-b6a0d1351956%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



On Thu, Feb 23, 2017, 9:36 AM Frederick Cheung <frederick.cheung@gmail.com> wrote:


On Wednesday, February 22, 2017 at 6:19:18 PM UTC, Mike wrote:
If you have a robust permissions system, you can also hide or show fields based on those permissions

In short I would never use an 'admin' model there is simply no point for 99% of applications


I've had a different experience - in one of the apps I work on I regret that users and admins are differentiated only by role. users have attributes that admin's don't need for admin tasks, but validations there mean that admins need to go though that signup process, rather than just email address & password. There are some attributes that only admins need so you end up with columns that are null for 1 million record and set for 5 of them.  In general I'd quite like the admin components and consumer facing components to be separate web applications & the shared user accounts are one of the things binding them at the moment. 

I can see that it's probably not a common case though.

Fred 

Fred, it is an important point,  though. App needs vary, types of user models might vary, and you can have this sort of bifurcated user / admin concept and *still* need them to have roles.

Even with this, you could have an account model, with roles of user and admin, maybe other levels, and split theextra info needed for users into a separate model, too. 

App needs vary, user needs vary, it's important to examine it well enough not to paint yourself into a corner in case what you thought you knew changes. 

--
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+unsubscribe@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/CAHUC_t-Jw-XpRCAr8mVrFQ8sFwyQq6qqMQ4Cjedm_7%2BCZN%3DbYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Thursday, February 23, 2017

Hello
We are Startup company in filed automate dropshipping  

We looking for developers in RoR to join us as partner 


ruby on rails

automate dropshipping

multidomain

multidomain Store

Automate inventory dropshipping


Send us email : education.online.me@gmail.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@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/cb78c71c-5f62-41dd-a338-e2a8b4315a7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Apologies if this comes through twice, it seems to have gotten stuck on my phone.

On Thu, Feb 23, 2017 at 9:36 AM Frederick Cheung <frederick.cheung@gmail.com> wrote:

On Wednesday, February 22, 2017 at 6:19:18 PM UTC, Mike wrote:
If you have a robust permissions system, you can also hide or show fields based on those permissions

In short I would never use an 'admin' model there is simply no point for 99% of applications

I've had a different experience - in one of the apps I work on I regret that users and admins are differentiated only by role. users have attributes that admin's don't need for admin tasks, but validations there mean that admins need to go though that signup process, rather than just email address & password. There are some attributes that only admins need so you end up with columns that are null for 1 million record and set for 5 of them.  In general I'd quite like the admin components and consumer facing components to be separate web applications & the shared user accounts are one of the things binding them at the moment. 

I can see that it's probably not a common case though.

Fred

Fred, it is an important point, though. App needs vary, types of user models vary, and can have this sort of bifurcated user/admin concept with separate models and *also* need permissions / roles, which could be different for the two types of user.

There are other ways to approach it as well, such as have an account model, which handles both user and admin users, and have other tables that deal with particular other fields and aspects of each user.

It's important to spend time to think through some of these, and not just land on one and always stick with it. You also don't want to paint yourself into a corner if (when?) you later find what you thought you knew changes.

Great points, Fred.
 

--
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+unsubscribe@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/CAHUC_t__Po6tuFEsJopNYgGW1YYH8r0veVJM3PUEFcg%3DHxnY6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Thu, Feb 23, 2017 at 9:28 AM mike r <mike.reider@gmail.com> wrote:
hello all, Im developing a ruby script (ruby 1.8.7)

its a simple script to generate an email using an ERB

my ERB has this 

JIRA ticket:
[ <%= issue_key %> ] - <%= summary %> 


I was wondering if its possible to embed that hyperlink somehow the ERB. When I get the email from this script, it embeds everything as plain text, I cant find a way to embed a hyperlink into a string

similar to this, 

<a href="https://jira-server/etc"> [ ABC-123 ] </a>

If you want the link text to be the last bit of the issue_key, you can get that by using the built-in File.basename method, and make this your content:

<a href="<%= issue_key %>">[ <%= File.basename(issue_key) %> ]</a>

Note that this is an off-label use of File.basename, but it works since URL paths look just like file paths. I have no recollection of the libraries available in 1.8.7 which has been obsolete for years now, but File.basename was there.

Tamara

--
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+unsubscribe@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/CAHUC_t-3UETMdp%3DrvWvvz22%3DJGwS-x1UGSuuJjpD4OYAymqJ1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



On Wednesday, February 22, 2017 at 6:19:18 PM UTC, Mike wrote:
If you have a robust permissions system, you can also hide or show fields based on those permissions

In short I would never use an 'admin' model there is simply no point for 99% of applications


I've had a different experience - in one of the apps I work on I regret that users and admins are differentiated only by role. users have attributes that admin's don't need for admin tasks, but validations there mean that admins need to go though that signup process, rather than just email address & password. There are some attributes that only admins need so you end up with columns that are null for 1 million record and set for 5 of them.  In general I'd quite like the admin components and consumer facing components to be separate web applications & the shared user accounts are one of the things binding them at the moment. 

I can see that it's probably not a common case though.

Fred 

--
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+unsubscribe@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/02055631-0048-4d37-a8bf-f891dd40a023%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

hello all, Im developing a ruby script (ruby 1.8.7)

its a simple script to generate an email using an ERB

my ERB has this 

JIRA ticket:
[ <%= issue_key %> ] - <%= summary %> 

where issue_key is this, https://jira-server.com/api/rest/query/ABC-123



I was wondering if its possible to embed that hyperlink somehow the ERB. When I get the email from this script, it embeds everything as plain text, I cant find a way to embed a hyperlink into a string

similar to this, 

<a href="https://jira-server/etc"> [ ABC-123 ] </a>


Im generating the template like this from my .rb

 templ = File.read('templates/' + template + '.erb')

generate = ERB.new(templ,nil,">").result(binding)


thanks

--
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+unsubscribe@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/8eaf84b8-27d6-4b11-9872-e15176db8266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Role: Senior Ruby on Rails

Location: Rockville, MD

 

Duration: 6 months plus

Interview type: Telephonic (SKYPE) followed by Face to face (Mandatory)

• Design and develop Ruby modules and REST web services with Sinatra or Ruby on Rails frameworks

• Deliver high quality code tested with RSpec and Cucumber

• Analyze and interpret complex requirements from scientists and doctors

• Introduce new technologies and best practices as needed to solve business problems

• Be a part of development team to create practical solutions in Agile/DevOps environment

• Be an expert to research and identify technical solution and be a mentor to junior staff

 

REQUIRED QUALIFICATIONS

• Excited about creating amazing application with cutting-edge environment

• Expert knowledge of Ruby • Minimum of six (6) years of relevant software development experience

• Extensive knowledge of RESTful and/or SOAP web services development

• Experience with Sinatra, Ruby on Rails, or other application frameworks on Linux environment

• Experience on Angular.JS

• Passionate about object-oriented programming with strong design skills

• Excellent problem solving skills

• Take ownership and work independently on a large portion of a project with minimal supervision

• Ability to work effectively with a team on complex projects with strict requirements

• Strong communication (written and verbal) and organizational skills

•Master's Degree and will sometimes accept  Bachelor's degree in Computer Science, Information Systems, Engineering or  similar.

• Must be able to obtain Public Trust security clearance

PREFERRED QUALIFICATIONS

Experience with NoSQL databases such as MongoDB is preferred

• Experience with continuous integration, Jenkins, code quality tools,

• Knowledge of test driven development, test frameworks like RSpec and Cucumber

• Knowledge of front end technologies like JavaScript, AngularJS, AJAX, JSON, jQuery is a plus

• Comfortable with version control systems like GIT or SVN, and bug tracking systems such as JIRA

• Ability in formulating and implementing IT solutions to meet business requirements

--
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+unsubscribe@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/db4a117f-ef1f-422a-bb94-7284dc04c21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Wednesday, February 22, 2017

If you have a robust permissions system, you can also hide or show fields based on those permissions

In short I would never use an 'admin' model there is simply no point for 99% of applications

--
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+unsubscribe@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/2f2e69f6-eac9-4a17-9dd4-4356ba471de4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

TypeError in Devise::ConfirmationsController#show

nil is not a symbol nor a string


what's causing this error anyone please? it says it's from dirty.rb line 181



--
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+unsubscribe@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/24b0f5c4-7efc-4b60-a0fd-a2caec0cccb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On 22 February 2017 at 16:41, fugee ohu <fugee279@gmail.com> wrote:
I agree, so then what do we need admin model for in light of roles

You don't need admin model
 

On Monday, February 20, 2017 at 12:06:09 PM UTC-5, fugee ohu wrote:
i want one of my tables to belong to either admins or users because i'm under the impression they can't belong to both
can someone clarify please

--
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+unsubscribe@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/c166e9bc-9a13-4bf9-a9db-651f6e5dd545%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CAL%3D0gLvENp2VKMewq2Zg%3DW0qxBFeDkb229pgSyz3yrUm%3DWYwFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

I agree, so then what do we need admin model for in light of roles

On Monday, February 20, 2017 at 12:06:09 PM UTC-5, fugee ohu wrote:
i want one of my tables to belong to either admins or users because i'm under the impression they can't belong to both
can someone clarify please

--
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+unsubscribe@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/c166e9bc-9a13-4bf9-a9db-651f6e5dd545%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Wed, Feb 22, 2017 at 2:38 AM Mike <mike.simkins@gmail.com> wrote:
I never really liked this functionality of devise,.

I normally make everyone a user, and the assign an 'admin' role in the same way as any other permission.


:thumbs-up: for this. Users (aka accounts) are users. Roles (aka privileges) are roles. Users have roles. Roles define access to resources and actions.

--
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+unsubscribe@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/CAHUC_t8RvDzPAYs3cts_w8zDz%2BTdF5vdsFyRjRnEh%3DWvN3BQJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Thanks tamouse pontiki for your reply, even am looking for solution does rails or yahoo supports or not. Waiting for some to give reply who have checked it. I have checked with different ports 25, 587 and 465 but no luck with address smtp.mail.yahoo.com..  

On Wed, Feb 22, 2017 at 4:52 AM, tamouse pontiki <tamouse.lists@gmail.com> wrote:
Do you know if yahoo mail requires a separate "app" password to access email in this way?
I'm asking only because I know Google email works this way, I don't know anything about connecting to Yahoo mail in particular.


On Tue, Feb 21, 2017 at 1:25 AM honey ruby <emailtohoneyruby@gmail.com> wrote:
I have changed address to  smtp.mail.yahoo.com but still the same.. no error but mails not delivered.

On Tue, Feb 21, 2017 at 12:37 PM, nanaya <me@0paste.com> wrote:
Hi,

On Tue, Feb 21, 2017, at 14:54, honey ruby wrote:
> Hi all,
>
> Am trying to send email with yahoo mail but it is not working but, with
> gmail works fine can someone correct me if anything is wrong in my smtp.
>
>
> production:
>       :address: smtp.yahoo.mail.com

the address should be smtp.mail.yahoo.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@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/1487660832.907831.887628736.61ABE7E7%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CAOKUzC%3D0z-pmqu_xkC48C6OwZNEbALgi7Fw6fTHVk%3DnC7gvGAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CAHUC_t8zb6OJAdpQTA5Nx97QeG-4eq9%3DnGvVOXV6GQvEhRta%2Bw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

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

Ruby on Rails

I never really liked this functionality of devise,.

I normally make everyone a user, and the assign an 'admin' role in the same way as any other permission.

--
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+unsubscribe@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/c2ad431e-7d13-4e71-8dfe-8e1dcbad0a4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Tuesday, February 21, 2017

Do you know if yahoo mail requires a separate "app" password to access email in this way?
I'm asking only because I know Google email works this way, I don't know anything about connecting to Yahoo mail in particular.


On Tue, Feb 21, 2017 at 1:25 AM honey ruby <emailtohoneyruby@gmail.com> wrote:
I have changed address to  smtp.mail.yahoo.com but still the same.. no error but mails not delivered.

On Tue, Feb 21, 2017 at 12:37 PM, nanaya <me@0paste.com> wrote:
Hi,

On Tue, Feb 21, 2017, at 14:54, honey ruby wrote:
> Hi all,
>
> Am trying to send email with yahoo mail but it is not working but, with
> gmail works fine can someone correct me if anything is wrong in my smtp.
>
>
> production:
>       :address: smtp.yahoo.mail.com

the address should be smtp.mail.yahoo.com

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@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/1487660832.907831.887628736.61ABE7E7%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CAOKUzC%3D0z-pmqu_xkC48C6OwZNEbALgi7Fw6fTHVk%3DnC7gvGAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CAHUC_t8zb6OJAdpQTA5Nx97QeG-4eq9%3DnGvVOXV6GQvEhRta%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



On Tuesday, February 21, 2017 at 10:57:40 AM UTC-5, fugee ohu wrote:
i whitelisted a paramater as shown below in appliction_controller.rb  but i'm getting the error from Action Controller "

TypeError in Devise::ConfirmationsController#show nil is not a symbol nor a string

Here's the line from my application_controller.rb:

      devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
Is confirmations_controller part of the sign_up group for devise?


Here's the error in the log:

Processing by Devise::ConfirmationsController#show as HTML
  Parameters: {"confirmation_token"=>"hh8zL_viEEc6XQq3k_Cv"}
  [1m [36mUser Load (1.3ms) [0m  [1m [34mSELECT  `users`.* FROM `users` WHERE `users`.`confirmation_token` = 'hh8zL_viEEc6XQq3k_Cv' LIMIT 1 [0m
  [1m [35m (0.5ms) [0m  [1m [35mBEGIN [0m
  [1m [35m (0.6ms) [0m  [1m [31mROLLBACK [0m
Completed 500 Internal Server Error in 207ms (ActiveRecord: 106.8ms)


 
TypeError (nil is not a symbol nor a string):
 
activemodel (5.0.0) lib/active_model/dirty.rb:188:in `attribute_was'

--
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+unsubscribe@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/360b9f4b-0bac-4b32-82c7-0dccee37bb0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Hi everyone,

I am happy to announce that Rails 4.2.8 has been released.

This is the first version of the 4.2 series that officially support Ruby 2.4.

## CHANGES since 4.2.7.1

To view the changes for each gem, please read the changelogs on GitHub:


*Full listing*

To see the full list of changes, [check out all the commits on

## SHA-1

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-1 hashes.

Here are the checksums for 4.2.8:

```
$ shasum *-4.2.8.gem
cc7ae3c4dcefa6143fab312c0f1f49739665c6d0  actionmailer-4.2.8.gem
185fce7ae0e740dba3282118ab3485a734fbe29b  actionpack-4.2.8.gem
723f43d0d5e07d884fe73241195ede30e63c692a  actionview-4.2.8.gem
5743c76b7ebcb91e93c6ed1af3bf97e5888253fa  activejob-4.2.8.gem
b82e9fe90171934f3fb16b44b6f15abc5e2e942b  activemodel-4.2.8.gem
d794a4c91a5d1eef1dcccb5c8fb2db554e4c2b35  activerecord-4.2.8.gem
7f3383216dd88dd9317447d619a7c671aa362115  activesupport-4.2.8.gem
4e0e486fee35547a7d00f3149634513e8fc2a7e9  rails-4.2.8.gem
ec16b696985663f5e67bbeeb9acf331f3eb3892b  railties-4.2.8.gem
```

As always, huge thanks to the many contributors who helped with this release.

--
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+unsubscribe@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/CAC9YFzcrriArVpvFwdxo8j2cJ94AC3dgH%3DKR-pU%3DMkRnXExc%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.