Search Discussions
-
6
[Rails] Why is code inside model running without being asked, and how to run it on link click only?
I have this link in the view: <%= link_to "Pay in PayPal", @order.paypal_url(edit_order_url, payment_notification_url), class: "btn btn-success" % And this in the model: class Order < ...David Alejandro
Jun 12, 2016 at 7:03 am
Jun 12, 2016 at 12:21 pm -
I'm trying to run "rails server" but I keep getting a missing gem so every gem it said was missing I manually installed. I manually installed gems all the way up to this point but this gem error ...
Rodin Chery
Jun 10, 2016 at 3:44 pm
Jun 11, 2016 at 3:39 pm -
Hello Folks! Im stuck with my current task, partly because there seems to be a lack of basic understanding of syntax i cant pinpoint. I hope you can show me a way out! What Im trying to do is ...
Rynn Steinbolt
Jun 3, 2016 at 7:16 pm
Jun 3, 2016 at 7:49 pm -
Hi folks! Im currently trying to generate diagrams with a js lib and rails. It doesn't work, though, since I can't figure out how to embed ruby code to supply the diagrams with data. My editor ...
Rynn Steinbolt
Jun 5, 2016 at 10:14 pm
Jun 6, 2016 at 2:57 pm -
Hi all, This is my first post, so I'll start by just saying hello, as I imagine I will be spending a lot of time on this forum in the future. Any way, to my problem... I am trying to build the ...
Frazer Watson
Jun 12, 2016 at 7:26 pm
Jun 13, 2016 at 1:38 pm -
Hello , here I am making an e-commerce app. While testing I found my tab button doesn't works for safari and chrome while it works for firefox. It will be great if someone can help me in figuring ...
Ankit Raj
Jun 7, 2016 at 5:34 am
Jun 7, 2016 at 7:18 am -
Hi, I'm trying to lock down a specfic template in my rails application to a particular user type, but only have a sinlge user model at the moment. There is a method that determines if the logged in ...
Michael Davis
Jun 13, 2016 at 4:33 pm
Jun 14, 2016 at 9:30 am -
Slow content got you down? Load it later! Use this gem to defer loading of portions of your page until after load. They will be fetched via AJAX and placed on the page when ready ...
Dave Kimura
Jun 13, 2016 at 12:11 pm
Jun 13, 2016 at 1:41 pm -
<https://lh3.googleusercontent.com/-8WQENjCn5So/V1wf6By7-pI/AAAAAAAABG8/L85MyxVD07Q9wf7LN0vlcc-xfE3hn9TewCLcB/s1600/Clipboard01.jpg Help please! I am doing the tutorial by M Hartl, using Cloud9 IDE ...
Ad Rienks
Jun 11, 2016 at 2:29 pm
Jun 11, 2016 at 7:38 pm -
im currently trying to implement a form with several buttons, and my solution for that was to make a full form for each of the 5 buttons. thats extremely repetitive, so i wanted to generate the forms ...
Rynn Steinbolt
Jun 11, 2016 at 4:51 pm
Jun 11, 2016 at 6:11 pm -
This looks like a wonder ful forum with many active members. Why dont we take a minute and introduce ourselves, so that we get to know each other better. http://utsaveyeclinic.com/ -- Posted via ...
Jogendra Prasad
Jun 10, 2016 at 6:08 am
Jun 10, 2016 at 1:11 pm -
How would I optimize the following code? def posts_for_30_blogs blogs = Blog.limit(30) blogs.flat_map do |blog| blog.posts.to_a end end -- Posted via http://www.ruby-forum.com/. -- You received this ...
Hem Chan
Jun 8, 2016 at 1:06 am
Jun 8, 2016 at 4:31 am -
Hi guys, I'm trying to find a chat with RoR developers. Something like this: https://telegram.me/rubylang Can you recommend me any chats with a big Ruby/RoR community? Do they exist? Or, as ...
Pavel Sh
Jun 6, 2016 at 4:26 pm
Jun 7, 2016 at 2:56 pm -
I'm using Redcarpet for markdown editor. The form contains a basic textarea. It works fine. I use CarrierWave to upload most of my files to aws S3 buckets. It works fine too. But, I'm unable to ...
Tan Heng Gek
Jun 18, 2016 at 7:58 am
Jun 18, 2016 at 10:48 am -
I have an application with items such as articles, bulletins, events, weekly specials,… Each of these has its own MVC implmentation and works well. What I would like to do is have the home page ...
Matt Martini
Jun 15, 2016 at 5:06 pm
Jun 15, 2016 at 9:53 pm -
Hello Folks! Im trying to have several model classes inherit from a new class, which in turn inherits from ActiveRecord::Base. The problem is that my controller's database calls to the original model ...
Rynn Steinbolt
Jun 11, 2016 at 2:08 pm
Jun 13, 2016 at 12:11 pm -
I have a rails application that is in fact a backend of a popular IOS application which have a user base of *200k users* who need to be notified time to time. Daily *40-50k users* will be notified ...
Toarvindmehra
Jun 11, 2016 at 8:55 pm
Jun 13, 2016 at 12:07 pm -
Hi all! I have a web application that uses Devise for authentication. I'll soon be releasing the android version of the application, and it will use the same Devise for authentication. Can anybody ...
Rafael Soares
Jun 10, 2016 at 5:58 pm
Jun 11, 2016 at 3:26 pm -
Rails 3.0.2 Ruby 1.9.3 Im currently trying to have a view's instance variable respond to the call 'holiday?' with a boolean. i cant put it in a model's class definition, since i use several classes ...
Rynn Steinbolt
Jun 9, 2016 at 9:41 pm
Jun 9, 2016 at 10:31 pm -
How can i refactor the below code class BlogPostsController < ApplicationController def ex @p_p = B.where(‘published_at <= ?’, Time.now) @unp_p = BlogPost.where(‘published_at = ? OR published_at ?’, ...
Hem Chan
Jun 8, 2016 at 1:10 am
Jun 8, 2016 at 11:25 am -
I want to communicate with printer by using ruby language. i am using socket programming to communicate with printer. my printer ip is "192.168.24.687" and port number is "20000". Below is the code ...
Sanjay Salunkhe
Jun 8, 2016 at 9:35 am
Jun 8, 2016 at 9:47 am -
While filling the form in my rails app I want to give option to start date from today onwards not past date. How can we do that? here's my code ...
Ankit Raj
Jun 7, 2016 at 12:22 pm
Jun 7, 2016 at 1:19 pm -
Hi, all! I am very new to Ruby and working my way through a course and have a reached a point where I cannot figure out what I'm doing wrong. Here is a link to my project on GitHub ...
Michelle McManus
Jun 3, 2016 at 4:04 pm
Jun 3, 2016 at 11:55 pm -
<textarea id="selectedRowsId" style="width: 60rem;min-height:8rem; margin: 1rem 0 1rem 4rem;" Kiran Trimukhe</textarea I want to get text here it is "Kiran Trimukhe" I want to automate this using ...
KIRAN Trimukhe
Jun 2, 2016 at 3:25 pm
Jun 3, 2016 at 7:53 am -
here is the reference to stackoverflow http://stackoverflow.com/questions/37887389/devise-auth-sign-in-api-not-returning-access-token-and-client I am not able to receive the access token and client ...
Rohan Jain
Jun 18, 2016 at 10:27 am
Jun 18, 2016 at 10:27 am -
Have you ever wondered how ranges work in Ruby? Read this post to learn more! http://www.blackbytes.info/2016/06/ruby-ranges-how-do-they-work/ Thank you, Jesus Castello -- Posted via ...
Jesus Castello
Jun 15, 2016 at 2:14 pm
Jun 15, 2016 at 2:14 pm -
Hi all! I have a query with a lot of joins and I'm eager_loading some of associations at the time. And I need to compute some value as attribute of one of models. So, I'm trying this code ...
Andrey Novikov
Jun 10, 2016 at 1:53 pm
Jun 10, 2016 at 1:53 pm -
Hi Everyone, I came across the mean stack article on online. it is very interesting and useful for me. you can also read the below link. www.optisolbusiness.com/insight/why-stay-mean-technically -- ...
Manikandan Suriyamoorthi
Jun 9, 2016 at 11:51 am
Jun 9, 2016 at 11:51 am -
Hi I'm trying to write an api, but I'm having an issue with the controller not returning "hi" Controller: class ApisController < ApplicationController before_action :set_api, only: [:show, :edit, ...
Yamazaki
Jun 7, 2016 at 4:23 pm
Jun 7, 2016 at 4:23 pm -
I want to get accept only present date or future date in my form , no past date. Here is my code https://gist.github.com/aj07/54db84129929577fde58f23c2c282441 any help would be appriciated. With ...
Ankit Raj
Jun 7, 2016 at 9:09 am
Jun 7, 2016 at 9:09 am -
0
[Rails] Adding before_action statement and new methods in Application controller using Rails Engine
Hi, Developing Rails Engine. Using Rails Engine, I have to include new methods and to add before_action statement in Application controller of app without in any changes in application level ...Kumar Ca
Jun 4, 2016 at 8:50 am
Jun 4, 2016 at 8:50 am -
Hey! I want to execute some SQL after the connection has been established (for example `SELECT set_limit(0.2)` to set the trigram match threshold in PostgreSQL). I'm looking for something like ...
Greg Navis
Jun 3, 2016 at 9:23 am
Jun 3, 2016 at 9:23 am -
Hi Recently I have asked the same question over here. Here is the mail thread <https://mail.google.com/mail/u/1/#inbox/155016b2b21f755e . I have gone through a post <http://khalsa.guru/posts/17 and I ...
Siva subrahmanyam
Jun 2, 2016 at 1:13 pm
Jun 2, 2016 at 1:13 pm
Group Overview
group | rubyonrails-talk |
categories | rubyonrails |
discussions | 33 |
posts | 103 |
users | 31 |
website | rubyonrails.org |
irc | #RubyOnRails |
31 users for June 2016
Archives
- June 2016 (104)
- May 2016 (177)
- April 2016 (212)
- March 2016 (326)
- February 2016 (262)
- January 2016 (347)
- December 2015 (363)
- November 2015 (424)
- October 2015 (268)
- September 2015 (377)
- August 2015 (290)
- July 2015 (535)
- June 2015 (430)
- May 2015 (335)
- April 2015 (458)
- March 2015 (348)
- February 2015 (388)
- January 2015 (436)
- December 2014 (433)
- November 2014 (370)
- October 2014 (329)
- September 2014 (419)
- August 2014 (468)
- July 2014 (504)
- June 2014 (72)
- May 2014 (313)
- April 2014 (488)
- March 2014 (484)
- February 2014 (403)
- January 2014 (422)
- December 2013 (322)
- November 2013 (371)
- October 2013 (478)
- September 2013 (436)
- August 2013 (448)
- July 2013 (643)
- June 2013 (559)
- May 2013 (750)
- April 2013 (575)
- March 2013 (791)
- February 2013 (578)
- January 2013 (687)
- December 2012 (681)
- November 2012 (874)
- October 2012 (928)
- September 2012 (1,187)
- August 2012 (905)
- July 2012 (1,015)
- June 2012 (916)
- May 2012 (836)
- April 2012 (1,031)
- March 2012 (1,125)
- February 2012 (1,678)
- January 2012 (1,451)
- December 2011 (1,289)
- November 2011 (1,257)
- October 2011 (1,239)
- September 2011 (551)