Re: [Rails] Re: RoR for poor farmers in Africa

2018-11-14 Thread Emmanuel Abia
Count me in. And to add to what Wale has said. After considering the entire architecture of the web and mobile application, you might just open source a part of it for a start and not the entire code base. On Wed, Nov 14, 2018, 17:48 PlantVillage wrote: > Hi Wale > Many thanks > > Yes, I have

Re: [Rails] Cron jobs

2017-09-05 Thread Emmanuel Abia
Try clockwork gem On 5 Sep 2017 12:52 p.m., "Aqib Hameed" wrote: > How to run cron jobs one time when server start.Because i run another > server when main server start > > every 15.minute do > runner "bundle exec script/mailman_server RAILS_ENV=development" > end > > >

Re: [Rails] i need a web developer

2017-03-31 Thread Emmanuel Abia
At your services On 31 Mar 2017 1:50 p.m., "tariq khan" wrote: i need a web developer working on Ruby on Rails or Node.Js -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop

Re: [Rails] associations - one to many

2016-09-30 Thread Emmanuel Abia
t; <%= f.input :title %> <%= f.input :template %> <%= f.input :price %> <%= f.input :msrp %> <%= f.input :enddate %> <%= f.input :draft %> <%= f.button :submit %> <% end %> On Fri, Sep 30, 2016 at 8:23 PM, E

Re: [Rails] associations - one to many

2016-09-30 Thread Emmanuel Abia
s.fetch(:product, {}) > > params.require(:product).permit(:title, :template, :price, :msrp, > :enddate) > > end > > > > > end > > > Ok, that's my product controller... > > > On Friday, September 30, 2016 at 11:38:34 AM U

Re: [Rails] associations - one to many

2016-09-30 Thread Emmanuel Abia
Pardon me its the update action code On 30 Sep 2016 4:31 p.m., "Emmanuel Abia" <abiae...@gmail.com> wrote: > Need the code in the controller edit action > > On 30 Sep 2016 4:03 p.m., "Joe Guerra" <jgue...@jginfosys.com> wrote: > >> Ok, here is m

Re: [Rails] associations - one to many

2016-09-30 Thread Emmanuel Abia
Need the code in the controller edit action On 30 Sep 2016 4:03 p.m., "Joe Guerra" wrote: > Ok, here is my edit products page... > > <% if user_signed_in? %> > > Editing Product > > <%= render 'form' %> > > <%= link_to 'Show', @product %> | > <%= link_to 'Back',

Re: [Rails] associations - one to many

2016-09-30 Thread Emmanuel Abia
You need to show the code for your edit On 30 Sep 2016 3:51 p.m., "Joe Guerra" wrote: > I've got two tables in my Postgres database: categories and products. > > I have a one to many relationship defined, one category can have many > products. > > > I then created a

Re: [Rails] Re: Re: Won't display current_user.appointment

2016-07-07 Thread Emmanuel Abia
ot;users", force: :cascade do |t| > t.string "email", default: "", null: false > t.string "encrypted_password", default: "", null: false > t.string "reset_password_token" > t.dat

Re: [Rails] Re: Won't display current_user.appointment

2016-07-07 Thread Emmanuel Abia
How did you setup your model relationship between users and appointments On Thu, Jul 7, 2016 at 1:42 PM, Ruth Stephenson wrote: > Thanks for your help, however it wont' work. > I put > <%= link_to 'My > appointment',current_user.appointments.order(:appointment_date).last%>

Re: [Rails] Won't display current_user.appointment

2016-07-07 Thread Emmanuel Abia
<%= link_to 'My Appointments', appointment_path(current_user.appointment) if current_user.appointment %> The problem is current_user.appointment is returing more than one appointments. So if u re concerned about the last ap then do this: current_user.appointment.last On 7 Jul 2016 1:14 p.m., "Ruth

Re: [Rails] Compressing the original image stored by Paperclip.

2016-05-16 Thread Emmanuel Abia
Hope you understand the "getaddrinfo:..." message On 16 May 2016 3:04 p.m., wrote: > i am trying to compress the original image stored by paperclip using > smusher on my local machine but i am getting this (getaddrinfo: Name or > service not known

Re: [Rails] Routing error

2016-05-12 Thread Emmanuel Abia
What routing error are you getting on the server? On 12 May 2016 1:49 p.m., "Yuri Redaelli" wrote: > > Hi all, > > for first sorry for my english. > > I've a Rails app with a namespaced route that works fine on localhost > but does not work on remote Server. > > This is my

Re: [Rails] I need to hire someone to develop a custom encryptor for devise

2016-02-03 Thread Emmanuel Abia
I don't think you need a custom encryptor. Since the database is accessible you can process and migrate all users without changing passwords. I am interested On 3 Feb 2016 7:52 a.m., "Guayo Mena" wrote: > I have a Joomla 3.x website on production. I already have a lot of

Re: [Rails] Under application file,i need sign up (devise) and home link( a view) links but having issue.

2016-01-20 Thread Emmanuel Abia
Read the configuration procedure again On 20 Jan 2016 5:25 pm, "jai kumar" wrote: > > No route matches {:action=>"index", :controller=>"devise/registrations"} > > > my application.html.erb > > > > <%= link_to "Home",:action => 'home' > > > > <%

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Emmanuel Abia
Avoid BY ALL MEANS any procedure that might complicate maintenance for you both short term and long term. I would advice you that you reconsider the approach. Rails has good validation methods that will make your programming life sweet and fun. What you are doing doesn't seem like fun to me. With

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Emmanuel Abia
owner of the record via email or when next the user >> tries to access the application redirect the user to make corrections >> before they proceed. *Scenario 1 *is seem good but don't play with >> invalid data in your database. >> >> On Tue, Oct 13, 2015 at 10:22 PM,

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Emmanuel Abia
Generally speaking i think you should NOT just allow invalid records AT ALL. For the record to be saved the user MUST ENSURE that the relevant information are valid. On Tue, Oct 13, 2015 at 9:30 PM, David McDonald wrote: > I'm currently trying to setup daily processes that

Re: [Rails] What's a good way to temporarily store invalid records for validating when importing data?

2015-10-13 Thread Emmanuel Abia
to access the application redirect the user to make corrections before they proceed. *Scenario 1 *is seem good but don't play with invalid data in your database. On Tue, Oct 13, 2015 at 10:22 PM, Emmanuel Abia <abiae...@gmail.com> wrote: > Avoid BY ALL MEANS any procedure that might c

Re: [Rails] Can anyone tell me how to send the sms in rails application

2015-09-22 Thread Emmanuel Abia
My experience with infobip SMS is good. They have better affordability, good support services and a wonderful SMS API. They also have a gem that integrates easily with your application. Try infobip SMS. I have used it with delayed job for queueing SMS delivery also and it works perfectly. On Tue,

Re: [Rails] Learning Devise for Rails

2015-06-10 Thread Emmanuel Abia
If you are using Rails 4+, you need to read the Strong parameter section of the Devise github page here https://github.com/plataformatec/devise. On Wed, Jun 10, 2015 at 10:58 AM, Greg Bressler li...@ruby-forum.com wrote: I'm new to rails and was trying to get a handle on Devise. I'm

Re: [Rails] relation between lib and model components

2015-04-21 Thread Emmanuel Abia
I don't think it is necessary creating any file in /lib since you want to run a process on just one model. Have your process method created in the model class : self.process_method() On Apr 21, 2015 3:35 PM, Ben Amsalem ben...@gmail.com wrote: Hi all, I'm going to create a process that needs to

Re: [Rails] Re: Help! Haml::SyntaxError in Posts#show

2015-03-23 Thread Emmanuel Abia
Try this... %h2.comment_count= pluralize(@post.comments.count, Comment) - @comments.each do |comment| .comment %p.username= comment.user.name %p.username= comment.content = render 'comments/form' .comment seems to be a class selector move it to the

Re: [Rails] Re: Re: Re: which Gem To Used For Building A Site Like Mediafire

2015-03-22 Thread Emmanuel Abia
Collins has spoken well in this matter...I like his responses. Do what he has instructed...Goodluck. Colin Law wrote in post #1170678: First start with basic site with the fundamentals of what you want. Then add devise gem understand how to use that to login and protect pages in your app.