Re: [Rails] variables in views

2016-02-27 Thread Tamara Temple
ink, given what you say above: <% for task in row_tasks do %> <%= image_path(task.name.thumb) %> <% end %> -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

Re: [Rails] The Ultimate Guide to Blocks, Procs & Lambdas

2016-02-23 Thread Tamara Temple
-and-lambdas/ Good article, Jesus! Thanks for adding your voice to the community. :) -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group a

Re: [Rails] Issue with routing

2016-02-23 Thread Tamara Temple
sk/:id(.:format) todolist#add_task > delete POST /:type/:id(.:format) todolist#delete_item > {:type=>"project|task"} > > -- > Posted via http://www.ruby-forum.com/. -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this mess

Re: [Rails] Better way to write this piece of code

2016-02-17 Thread Tamara Temple
e, and extremely clear what is going on. If this sort of thing is repeated over and over with different status codes, *that* should be simplified into a single method, passing in the code. -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this message because you are subscribed

Re: [Rails] Ruby on Rails and getting started

2016-01-17 Thread Tamara Temple
s one progresses. > Any help and direction would be appreciated... -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- 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

Re: [Rails] Adding Bootstrap CSS

2016-01-16 Thread Tamara Temple
tylesheets/application.css.scss`, and you have to make some other modifications to it as well. See <https://github.com/twbs/bootstrap-sass#a-ruby-on-rails> where the Gem describes how to install and configure it in the Rails application. -- Tamara Temple tamo...@gmail.com http://www.tamo

Re: [Rails] Character Counter is showing a negative number, not initial value

2016-01-12 Thread Tamara Temple
s comming off whatever tag has id="counter" and data-maximum-lenght="400", that is being pulled in as a String. Perhaps try: max_length = parseInt(counter.data('maximum-lenght')); -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this mess

Re: [Rails] Why the first user created would get id 2 instead of 1?

2015-12-31 Thread Tamara Temple
olin Law previously suggested, that is that id > numbers are not reused: is it possible that this rule is effective even > when the user is created with the console in a sandbox mode? -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this message because you are subs

Re: [Rails] Why the first user created would get id 2 instead of 1?

2015-12-31 Thread Tamara Temple
causing me to scratch my head. Why is starting at so absolutely important to you? It is a proper error to count on a particular record always have an absolute record id value. -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this message because you are subscribed t

Re: [Rails] Using API's on Rails (Is Java script necessary?)

2015-12-29 Thread Tamara Temple
y. In addition, Rails has a tonne of contributed gems to interface with the popular web services. That said, you'll still probably need to learn some JS along the way anyway because it's pretty much expected your own application front end will need to use some. Take it slow, learn in stages; there's a

Re: [Rails] Why the first user created would get id 2 instead of 1?

2015-12-29 Thread Tamara Temple
, or really by this time, depending on how many times you've tested this, even higher numbers. -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and

Re: [Rails] Rethinking the default page @ localhost:3000

2015-12-28 Thread Tamara Temple
on the core team will accept it, but it sure would be nice! And I'm nobody at all whose opinion on this means nothing in the end. Just a heavy user. :) -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this message because you are subscribed to the Google Groups "R

Re: [Rails] ES6/ES2015 or Coffee-Script for new Project?

2015-12-28 Thread Tamara Temple
only a tiny view into the whole world of it, writing a Rails web app to provide an API that can be used by many front-end apps, desktop and mobile, seems a popular way to go. All opinions! Not hard-and-fast facts, and everything is rapidly changing. -- Tamara Temple tamo...@gmail.com http://www.tamou

Re: [Rails] Why the first user created would get id 2 instead of 1?

2015-12-28 Thread Tamara Temple
timeout"=>5000, "database"=>"d7joq5egek6ik", "username"=>"ehufnjwspxqoqf", > "password"=>"jq-7RPmjk0ipNkvh-3PaSgyyhv", "port"=>5432, > "host"=>"ec2-54-204-30-115.compute-1.amazonaws

Re: [Rails] New To Community and ROR

2015-12-27 Thread Tamara Temple
joining a user group, meetup, and so on is extremely helpful. Again, don't look for shortcuts. Look for understanding. [1] http://guides.rubyonrails.org/getting_started.html [2] http://installfest.railsbridge.org/intro-to-rails/ [3] https://www.railstutorial.org/book [4] https://www.codefellows.

Re: [Rails] Why the first user created would get id 2 instead of 1?

2015-12-27 Thread Tamara Temple
so you get two messages, one from irb and one from the logger. There is only one actual database operation happening. -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

Re: [Rails] Using Bandsintown API in Ruby on Rails

2015-12-18 Thread Tamara Temple
gt; > > <%= @venues.inspect %> > > > in the corresponding view but that just shows nil. Of course, another possibility is that Bandsintown has no listings for a House of Blues near San Diego. -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this m

Re: [Rails] Using Bandsintown API in Ruby on Rails

2015-12-18 Thread Tamara Temple
this sort of thing embedded in the middle of all that other stuff going on. -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- 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

Re: [Rails] (JOBS) Ruby on Rails Developer

2015-12-08 Thread Tamara Temple
utiful location and great benefits! > > zac@tripleco .com > 5126235816 > > <https://lh3.googleusercontent.com/-RrMPuCL6Wa0/VmchnEu3haI/AOg/F7vAj_XoI7c/s1600/Office%2Bphotos.jpg> -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this messag

Re: [Rails] Ruby on GoDaddy

2015-12-03 Thread Tamara Temple
hen you rent a VPS from GoDaddy, your basically on your own for Rails support, but that's actually quite all right. It means you get to install the newest versions of Ruby, Rails and all the rest of the environment. -- Tamara Temple tamo...@gmail.com http://www.tamouse.org -- You received this m

Re: [Rails] rendering collections with partials

2015-11-24 Thread Tamara Temple
line and see what the view sees. I wrote a small test app to deal with self-nested objects, so I know this sort of thing does work. As we only get to see what you show us, perhaps you could give us a link to your public repository. Or even put up a gist with all the applicable parts. Or do what I

Re: [Rails] rendering collections with partials

2015-11-22 Thread Tamara Temple
ml#scopes 2. partials for collections See http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials subsection 3.4.5 Rendering Collections. When you have a collection of categories, as you do with `@parent_categories`, you name the partial `category.html.erb` (NOTE SINGULAR) and the

Re: [Rails] group_by in views

2015-11-22 Thread Tamara Temple
om. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/0fe07e54-776d-45a3-812d-5aa6247d21dc%40googlegroups.com >> <https://groups.google.com/d/msgid/rubyonrails-talk/0fe07e54-776d-45a3-812d-5aa6247d21dc%40googlegroups.com?utm_

Re: [Rails] Problem when running db:create

2015-11-18 Thread Tamara Temple
;>> > I have installed; >>> > Ruby >>> > ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] >>> > >>> > Rails 4.2.4 >>> > gem 2.5.0 I am pretty sure that fedena does not work out of the box with these versions. The l

Re: [Rails] helper function in database.yml not working from rake

2015-11-18 Thread Tamara Temple
ication.config_for(:storage) AqrReports::Application.config.image_options = STORAGE_CONFIG['images'] AqrReports::Application.config.file_options = STORAGE_CONFIG['files'] >From the looks of things, you may need to rearrange your storage.yml to be in the same structure as database.yml. -- Tamara

Re: [Rails] Remove passwords from database.yml in rails 2.3.8 application?

2015-11-01 Thread Tamara Temple
08/secure-rails-deployment-and-passwords-best-practices/ Generally, in projects I've worked on, these variables come from the environment: production: # ... username: <%= ENV['DB_USER'] %> password: <%= ENV['DB_PASS'] %> The actual environment variables would

Re: [Rails] Cocaine::CommandNotFoundError while using ffmpeg

2013-11-28 Thread Tamara Temple
Does this help? https://github.com/owahab/paperclip-ffmpeg#requirements On Nov 28, 2013, at 1:00 AM, Prabu M prab...@sybrant.com wrote: Hi, I am using paperclip-ffmpeg gem to create thumbnail for video rails 3.2.12 while uploading following error occurs [paperclip] [ffmpeg]

Re: [Rails] Address already in use - bind(2) (Errno::EADDRINUSE)

2013-11-25 Thread Tamara Temple
On Nov 25, 2013, at 5:19 AM, Colin Law clan...@googlemail.com wrote: On 25 November 2013 09:02, Fahad Idrees access2co...@gmail.com wrote: you can check which process is running on that port by typing on command line lsof -i tcp:port number and than kill that process by typing kill -9

Re: [Rails] Rails 4, subdomain routing

2013-11-22 Thread Tamara Temple
On Nov 21, 2013, at 5:37 AM, Rob Biedenharn rob.biedenh...@gmail.com wrote: On 2013-Nov-21, at 04:12 , Tamara Temple tamouse.li...@gmail.com wrote: On Nov 20, 2013, at 4:04 AM, Srdjan Cengic cengas...@gmail.com wrote: Far as i know, link to http://api.localhost:3000/posts should work

Re: [Rails] Authentication for both web api

2013-11-22 Thread Tamara Temple
On Nov 21, 2013, at 4:12 PM, renu mehta li...@ruby-forum.com wrote: Hello, I need to develop an application which needs to authenticate user by verifying login name/password for both web access and api. I need the same controller to cater to both web and api. I can put the before_filter

Re: [Rails] Convenient and Effective way to transfer Canon XF100 /XF305 MXF to Sony Vegas Pro 12

2013-11-22 Thread Tamara Temple
What does this have to do with Rails? On Nov 21, 2013, at 5:41 PM, horiechen horiechen li...@ruby-forum.com wrote: Canon XF305 camcorder is regarded as a landmark of Canon's professional High Definition camcorders. Adapting a new Full HD 50Mbps MPEG-2 4:2:2 codec, Compact Flash recording

Re: [Rails] Rails 4, subdomain routing

2013-11-21 Thread Tamara Temple
On Nov 20, 2013, at 4:04 AM, Srdjan Cengic cengas...@gmail.com wrote: Far as i know, link to http://api.localhost:3000/posts should work but i get routing error: No route matches [GET] /posts (Same with /posts.json) This isn’t how localhost works, at all. If you need to set up a local

Re: [Rails] add class variable to all models using concern to extend AR?

2013-11-21 Thread Tamara Temple
On Nov 20, 2013, at 9:34 AM, Matt Yoder li...@ruby-forum.com wrote: Hi All, I've previously used concerns to extend my models without problems. I'm now trying to extend all my models in one swell-foop by extending AR with a concern. In brief, I want to add a class variable to each

Re: [Rails] Caching unexpected behaviour

2013-11-21 Thread Tamara Temple
Paulo, You might want to check out Ryan Bigg’s Multitenancy With Rails https://leanpub.com/multi-tenancy-rails -- 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

Re: [Rails] avoiding duplicate string writing

2013-11-14 Thread Tamara Temple
On Nov 14, 2013, at 3:27 AM, Rodrigo de Campos r...@netzmarkt.de wrote: Hi all, I'm trying to run the code below. Basically I want to include the users user and user2 after the line Authentication:. I'm running this ruby_block inside a Chef recipe and in a first moment it works as

Re: [Rails] Cannot receive from specified address Unauthenticated senders not allowed

2013-11-13 Thread Tamara Temple
On Nov 13, 2013, at 7:13 AM, Nishant Sharma nishantsharma...@gmail.com wrote: On trying to run a rake task via crontab, I'm getting the following error: rake aborted! 550 Cannot receive from specified address h...@xyz.com: Unauthenticated senders not allowed You should check that

Re: [Rails] Export CSV

2013-11-09 Thread Tamara Temple
On Nov 8, 2013, at 12:24 AM, Daynthan Kabilan dayantha...@gmail.com wrote: Hi friends, i am using csv export on my application. in my view file code is %- headers = [Transaction ID, Activity ID, Product Name,Customer Name, Ticket code] -% %= CSV.generate_line(headers).strip % %if

Re: [Rails] create action, fails validation, renders new and then calls the index action silent the background?

2013-11-09 Thread Tamara Temple
On Nov 8, 2013, at 11:41 AM, johnnybutler7 johnnybutl...@gmail.com wrote: Hi Guys, Strange issue going on, cant get to the bottom of it. I have a bog standard form which submits to the create action fine. If the validation fails however the new action is rendered with the appropriate

Re: [Rails] how to search the phrase of numbers

2013-11-09 Thread Tamara Temple
On Nov 8, 2013, at 7:54 PM, Dina Z. li...@ruby-forum.com wrote: Hi,Dear all, I am trying to search the phrase of numbers in a html page in the sentence below: div class=Results id=yui_3_11_0_4_1383957936583_5009(253 items)/div I used this piece of code, but it does not work,

Re: [Rails] Re: Ruby on Rails for Beginners

2013-11-09 Thread Tamara Temple
On Nov 8, 2013, at 11:43 AM, Matt Baril baril.math...@gmail.com wrote: I didn't come from a programming background and only had a very basic understanding of concepts such as objects, method, etc. I personally used these 3 resources and would strongly recommend them: • Codecademy to

Re: [Rails] Ruby code on Chef as a ruby_block not working

2013-11-07 Thread Tamara Temple
You should really ask about this in a chef support area, as it is something very specific to chef. As it is, you cannot define local functions in chef recipes, they have to be defined in libraries and called from such. Stackoverflow is really your best bet for help on chef things, or the #chef

Re: [Rails] 240.chr different on Linux than Windows?

2013-11-07 Thread Tamara Temple
On Nov 7, 2013, at 7:54 PM, RVic rvinc...@hotmail.com wrote: I'm sending a string through a socket connection from a rails app to another application. The string is delimited with 240.chr. On windows it runs fine, on Linux, it seems to put in a different looking character in for

Re: [Rails] 240.chr different on Linux than Windows?

2013-11-07 Thread Tamara Temple
On Nov 7, 2013, at 8:20 PM, R Vince rvinc...@gmail.com wrote: I would think so, but the other side is a java socket listener app, and it isn't splitting on it in Linux, but is on Windows. On Thu, Nov 7, 2013 at 9:16 PM, Tamara Temple tamouse.li...@gmail.com wrote: On Nov 7, 2013, at 7

Re: [Rails] BEST RAIL SERVER

2013-11-05 Thread Tamara Temple
On Nov 5, 2013, at 5:03 AM, Fahad Idrees access2co...@gmail.com wrote: Hi, i want to deploy my website sort of chat website. I am expecting more than 50K online users at it's peak time. I don't want to compromise on optimization and page speed and don't want user to wait too long for page

Re: [Rails] Can we keep validation in memcached ?

2013-11-05 Thread Tamara Temple
On Nov 5, 2013, at 12:20 AM, Jordon Bedwell envyge...@gmail.com wrote: On Tue, Nov 5, 2013 at 12:07 AM, Sur sur@gmail.com wrote: Do you know what is the difference between a string and a symbol and why and where symbols are preferred over strings ? try this: a = some string b =

Re: [Rails] rails 2D array access in Helper method

2013-11-04 Thread Tamara Temple
On Nov 3, 2013, at 3:35 PM, Tamara Temple tamouse.li...@gmail.com wrote: On Nov 1, 2013, at 9:20 AM, leo nike li...@ruby-forum.com wrote: Hi, I Want to simply print out 2d array elements. Method is located in Helper module. Calling helper method from jQuery. At the moment I'm not getting

Re: [Rails] Re: Can we keep validation in memcached ?

2013-11-04 Thread Tamara Temple
On Nov 4, 2013, at 2:42 AM, Sur Max sur@gmail.com wrote: @Fahim In my opinion memcached is not a suitable tool for the purpose you've mentioned. In fact it'd be waste of resources in such a case. I would go for processing that thing in background using any of the available gem for

Re: [Rails] Re: Can we keep validation in memcached ?

2013-11-04 Thread Tamara Temple
On Nov 4, 2013, at 4:32 AM, Fahim Patel pafa...@gmail.com wrote: @sur and @tam thanks for reply @sur - Currently I am using rescue I am using worker's but still I am thinking to use memcache for fast performanceWhat you say can I achieve validation on cache level. @tam -

Re: [Rails] Can we keep validation in memcached ?

2013-11-04 Thread Tamara Temple
On Nov 4, 2013, at 6:02 AM, Fahim Patel pafa...@gmail.com wrote: Thanks @tamouse for reply. Actually my table consist more than 15 columns and each column have lots of validation like presence validation,format validation. Major issue is user will upload CSV file which can consist

Re: [Rails] rails 2D array access in Helper method

2013-11-04 Thread Tamara Temple
On Nov 4, 2013, at 8:05 AM, leo nike li...@ruby-forum.com wrote: Great! I didnt even think about implementation like that, that's awesome. thanks a lot! can I contact you, in case something doesnt work here? Just reply on list, there are some truly awesome people here, most definitely not

Re: [Rails] rails 2D array access in Helper method

2013-11-04 Thread Tamara Temple
On Nov 4, 2013, at 3:19 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Nov 3, 2013, at 3:35 PM, Tamara Temple tamouse.li...@gmail.com wrote: On Nov 1, 2013, at 9:20 AM, leo nike li...@ruby-forum.com wrote: Hi, I Want to simply print out 2d array elements. Method is located

Re: [Rails] jScript framework?

2013-11-03 Thread Tamara Temple
On Oct 30, 2013, at 8:12 PM, mark edwards li...@ruby-forum.com wrote: newbie disclaimer - i have yet to even start using RoR... hello all - i am getting ready to start looking into RoR and was wondering about how various (and many) jScript frameworks might tie into RoR.

Re: [Rails] rails 2D array access in Helper method

2013-11-03 Thread Tamara Temple
On Nov 1, 2013, at 9:20 AM, leo nike li...@ruby-forum.com wrote: Hi, I Want to simply print out 2d array elements. Method is located in Helper module. Calling helper method from jQuery. At the moment I'm not getting output (= 0..3) I tried to do iterate through array via .each() method, but

Re: [Rails] rake db:migrate debacle

2013-10-30 Thread Tamara Temple
On Oct 28, 2013, at 11:44 PM, Will Amette jeff.j.strin...@gmail.com wrote: Hi there - I'm a ruby newbie and am stuck on the Getting Started with Rails app. See output below. Problem arose when I ran the rake db:migrate command. I also tried the 'rake db:migrate RAILS_ENV=development'

Re: [Rails] Looking for Advice

2013-10-30 Thread Tamara Temple
On Oct 29, 2013, at 6:37 PM, Chris Clemens crclemen...@gmail.com wrote: Hey Guys, A group of guys and myself have been working on a project/business plan to develop a Hotel Concierge application for tablets. We have been working on it for over a year and have hotels here in Chicago that

Re: [Rails] Rails book

2013-10-23 Thread Tamara Temple
On Oct 22, 2013, at 2:40 PM, Julien Itard julienit...@gmail.com wrote: Hi there, i'm a new RoR developer and i need your feedback about this book :http://pragprog.com/book/rails4/agile-web-development-with-rails-4 Is it good for learning Rails ? I mean, i already read Michael Hartl

Re: [Rails] git push not working

2013-10-22 Thread Tamara Temple
Note that this is not the Git help list. On Oct 21, 2013, at 3:27 PM, Natmanu natm...@gmail.com wrote: And on my remote Git I have only one key. Can I add two SSH to github? You can have many many ssh keys on your github account. I have for each box (real and virtual) I work on, and the

Re: [Rails] Rails 4 - I got NoMethodError undefined method. Please help

2013-10-20 Thread Tamara Temple
On Oct 18, 2013, at 10:17 PM, Jim koyca2...@gmail.com wrote: I got a NoMethodError when i called %= @post.admin_user.name %, don't know how to fix it. Extracted source (around line #4): h1%= @post.title %/h1 p%= @post.body %/p smallPost created at %=

Re: [Rails] Render html withouts assets

2013-10-20 Thread Tamara Temple
On Oct 19, 2013, at 7:19 AM, Danil Fomichev sibl...@gmail.com wrote: Hi, Is there a way to render template without assets from application.js and application.css? You can specify a different layout that does not include these, or… In my project I use html rendered by controllers.

Re: [Rails] in dev, how can I make assets/javascripts changes show up in browser (rails 3.2/chrome 21)

2013-10-14 Thread Tamara Temple
On Oct 14, 2013, at 9:28 AM, G-money gallagher.po...@gmail.com wrote: Sometimes -- like now -- my favorite dev browser, Chrome (v.21), will not show changes made in my Rails 3.2 assets/javascripts files. Is this a Chrome thing, or how can I get the changes to show up immediately upon page

Re: [Rails] Best Book 4 RoR

2013-10-09 Thread Tamara Temple
On Oct 4, 2013, at 12:24 PM, Adrian Garrigos fernetbia...@gmail.com wrote: Hello, Is there a great book for Ror. I am looking for a book with a step by step approch and by PROJECTS!! RoR needs to be 'practiced', and i didn't find those WORKING PROJECTS. Am i dreaming or is this paper

Re: [Rails] Multitenancy and the options to realise it in rails4

2013-09-22 Thread Tamara Temple
On Sep 21, 2013, at 6:55 AM, Denny Mueller macda...@googlemail.com wrote: Ok the situation is that I have an App, where to user can sign in and can use the app save some data like customers and orders to the db. Since I'm using devise for authentication, I realised the multitenenacy with

Re: [Rails] Introducing Web Console 1.0 [Google Summer of Code 2013 Project]

2013-09-20 Thread Tamara Temple
Well done!! I haven't tried it out, but this is quite an ambitious project and I'm looking forward to seeing it. On Sep 19, 2013, at 11:41 AM, Genadi Samokovarov gsamokova...@gmail.com wrote: Hi There, My name is Genadi and for the last 2 months, me and Guillermo Iguaran have been

Re: [Rails] Passing instance variable to js.erb

2013-09-17 Thread Tamara Temple
Not as old a message as I've responded to, but this one was from February of 2012… On Sep 16, 2013, at 9:26 AM, Minh Quy sugiacu...@gmail.com wrote: you should not use js with erb, it meet serious problem when you change variable rails without change js. You can use client variable gem,

Re: [Rails] Getting Started with Ruby - Guide

2013-09-15 Thread Tamara Temple
On Sep 15, 2013, at 6:12 AM, Green Eco li...@ruby-forum.com wrote: Hi, I am making the Ruby on Rails Getting Started Guide at: http://guides.rubyonrails.org/getting_started.html but I have one problem. Almost everything is well explained but at 5.7 and 5.8 there are two commands: post

Re: [Rails] How much css do I need to know for becoming a Ruby on Rails Develoepr?

2013-09-13 Thread Tamara Temple
On Sep 12, 2013, at 7:50 PM, Alireza T. li...@ruby-forum.com wrote: I have a bachelor degree in Comp Sci. I know the basics of CSS. I can change fonts, backgrounds, colors, etc but I can not make complex layouts. I am planning to learn Ruby on Rails so I can apply for jobs as a Web

Re: [Rails] Why does Rails debug information shows up in production?

2013-09-11 Thread Tamara Temple
On Sep 11, 2013, at 11:25 AM, Jason Hsu, Rubyist jhsu802...@gmail.com wrote: I recently upgraded Bargain Stock Funds (http://www.bargainstockfunds.com) and Doppler Value Investing (http://www.dopplervalueinvesting.com) from Rails 3.2 to Rails 4.0. I've noticed that the debug information

Re: [Rails] Rails sites went down without my knowledge

2013-09-10 Thread Tamara Temple
On Sep 9, 2013, at 9:35 PM, Jason Hsu, Rubyist jhsu802...@gmail.com wrote: I found that both of my Rails sites went down tonight without my knowledge, and I was getting 502 errors when I tried to visit these sites. Both are hosted by the same company. Fortunately, I was able to get the

Re: [Rails] Confusion with Hash duplicate key removal

2013-09-10 Thread Tamara Temple
On Sep 10, 2013, at 12:32 AM, Love U Ruby li...@ruby-forum.com wrote: Hi, I have one basic question to ask regarding Hash key. Follow the below : foo.object_id # = 72994000 foo.object_id # = 72993390 {foo =2,foo =3} # = {foo=3} I do know that Hash don't allow duplicate keys. But I

Re: [Rails] Nested attributes requires an array and throws a TypeError if passed a hash.

2013-09-10 Thread Tamara Temple
On Sep 9, 2013, at 5:16 PM, Brett Pontarelli br...@paperyfrog.com wrote: Below is an example of the error I encountered in my project today and after a great deal of searching I realized the problem to be that the *_attributes needs to be an array! My first question is, is there a use for

Re: [Rails] RSpec vs. Cucumber

2013-09-08 Thread Tamara Temple
On Sep 8, 2013, at 12:41 AM, Emil S emil.so...@gmail.com wrote: Andre, what you need is Rack::Test, not capybara. Not sure what you mean here. Capy uses Rack::Test by default: https://github.com/jnicklas/capybara#selecting-the-driver -- You received this message because you are subscribed

Re: [Rails] Zcx DG xXz#ZDxz!zzx !!% su x vez x de xx. X zzz$„„$™™(R)(R)da xfzzgxz xd x!xZxxzx!!%,!,,#!des CD des z z #dexzzx!#4!%! €€ ,!!!z fa es sede zdzs c ce red cs es crea z vez res zzf zc

2013-09-07 Thread Tamara Temple
On Sep 7, 2013, at 3:19 AM, juan zubillaga jzubill...@gmail.com wrote: SZxXS Your syzygy is amazeballs -- 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

Re: [Rails] Struggling with a model - are there good developers to help?

2013-09-06 Thread Tamara Temple
On Sep 4, 2013, at 6:48 AM, Alessandro Prioni alessandropri...@gmail.com wrote: Hi guys, I'm new with web development so I'm sorry if my question sounds trivial. I'm building an app to write wine tasting notes, and I have to translate this tasting framework (only the first page)

Re: [Rails] Parameter with the same name as the controller returning the params hash instead of nil

2013-09-06 Thread Tamara Temple
On Sep 6, 2013, at 10:49 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Sep 5, 2013, at 2:50 AM, Andrei G otzy...@gmail.com wrote: Hi, I am having an issue with this code[1]. Testing in cucumber if there is no parameter :shot breaks. Somehow the shout parameter it's returning

Re: [Rails] Parameter with the same name as the controller returning the params hash instead of nil

2013-09-06 Thread Tamara Temple
On Sep 5, 2013, at 2:50 AM, Andrei G otzy...@gmail.com wrote: Hi, I am having an issue with this code[1]. Testing in cucumber if there is no parameter :shot breaks. Somehow the shout parameter it's returning the whole params hash. This thing happens everytime when the parameter has the

Re: [Rails] Parameter with the same name as the controller returning the params hash instead of nil

2013-09-06 Thread Tamara Temple
On Sep 6, 2013, at 11:08 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Sep 6, 2013, at 10:49 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Sep 5, 2013, at 2:50 AM, Andrei G otzy...@gmail.com wrote: Hi, I am having an issue with this code[1]. Testing in cucumber

Re: [Rails] Parameter with the same name as the controller returning the params hash instead of nil

2013-09-06 Thread Tamara Temple
On Sep 6, 2013, at 2:46 PM, Andrei G otzy...@gmail.com wrote: On Friday 06 September 2013 12:22:08 Tamara Temple wrote: On Sep 6, 2013, at 11:08 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Sep 6, 2013, at 10:49 AM, Tamara Temple tamouse.li...@gmail.com wrote: On Sep 5, 2013, at 2

Re: [Rails] Speed up image processing of Paperclip in Acceptance Tests

2013-09-04 Thread Tamara Temple
On Sep 4, 2013, at 12:41 AM, Ryan ryancheung...@gmail.com wrote: Hi All, I have a question here: How to Speed up image processing of Paperclip in Acceptance Tests When running capybara feature specs I can see lots of Slow factory notices which are populated byfactory_girl. These Slow

Re: [Rails] MySQL2/Arel/ActiveRecord and PAD SPACE

2013-09-02 Thread Tamara Temple
On Sep 2, 2013, at 12:46 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: TIL: The SQL-92 spec dictates that CHAR/VARCHAR comparisons be made after padding each string with spaces to the same length. That means that using a standard MySQL collation, the two strings 'foo' and 'foo '

Re: [Rails] Images with fingerprinting

2013-08-29 Thread Tamara Temple
On Aug 27, 2013, at 12:25 PM, Nick Khamis sym...@gmail.com wrote: Hello Tamouse, It sounds now like you are setting that via an AJAX call. This is correct. We are using JQuery to manage the payload. Where you need to look is in the controller that is responding to that AJAX

Re: [Rails] trying to create asset management app having trouble with edit page

2013-08-29 Thread Tamara Temple
On Aug 27, 2013, at 5:05 PM, pez acide li...@ruby-forum.com wrote: i trying to create an asset management app. i am working through the ruby on rails 4.0 guide by Michael Hartl but in his guide it shows edit page for authenticated users i do not needthis function as the app will be deployed

Re: [Rails] Problem when using bundle exec rake with Launchd

2013-08-29 Thread Tamara Temple
On Aug 29, 2013, at 5:33 AM, Shawn h. li...@ruby-forum.com wrote: Dear all, I am developing a web harvesting server which requires regularly website parsing. Since I use Mac 10.8 as my development environment, I try to use Launchd to routinely wake up my parser. My parser was a bash

Re: [Rails] Need a bit help on module_function method

2013-08-29 Thread Tamara Temple
On Aug 29, 2013, at 2:16 PM, Love U Ruby li...@ruby-forum.com wrote: Please help me to understand what does mean by If used with no arguments, subsequently defined methods become module functions.? That means you can use it as a means of saying All the methods defined below are module

Re: [Rails] fetch the Hash from a string

2013-08-26 Thread Tamara Temple
On Aug 26, 2013, at 2:42 PM, Love U Ruby li...@ruby-forum.com wrote: require 'json' str = 1=2,3=(4=5,6=7) new_str = str.gsub(/=|\(|\)/) do |m| if m == = m= = elsif m == ( m = { else m = } end end new_str = new_str.prepend({) } # = {1=2,3={4=5,6=7}}

Re: [Rails] No route matches [POST]

2013-08-23 Thread Tamara Temple
On Aug 23, 2013, at 6:25 AM, Rita Ferreira ritaferreir...@gmail.com wrote: Hi, I'm new in RoR, I need some help in the following situation: Hi, Rita, welcome! I have 2 controllers, clinica and consultas. Clinica is my default controller. On /views/clinica, I have the index.html.erb

Re: [Rails] Images with fingerprinting

2013-08-23 Thread Tamara Temple
On Aug 22, 2013, at 5:29 PM, Nick Khamis sym...@gmail.com wrote: `wine` is the parameter of a render function: function renderDetails(wine) { $('#wineId').val(wine.id); $('#name').val(wine.name); $('#grapes').val(wine.grapes); $('#country').val(wine.country);

Re: [Rails] RSpec vs. Cucumber

2013-08-22 Thread Tamara Temple
On Aug 22, 2013, at 4:29 PM, Jason Hsu, Android developer jhsu802...@gmail.com wrote: So far, I've been using RSpec for testing my Rails apps simply because that's what railstutorial.org emphasizes. However, I am in the process of trying out Cucumber. I like the fact that it's in plain

Re: [Rails] Images with fingerprinting

2013-08-22 Thread Tamara Temple
On Aug 22, 2013, at 4:15 PM, Nick Khamis sym...@gmail.com wrote: Hello Tamouse, Thank you so much for your reply, Where trying $('#pic').attr('src', %= asset_path(wine.picture)%);, I get the following error: undefined local variable or method `wine' for

Re: [Rails] Converting a Time to a String and Back in Rails 4.0.0

2013-08-21 Thread Tamara Temple
On Aug 20, 2013, at 9:57 AM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Thu, Aug 15, 2013 at 5:15 PM, Phil p...@edgedesign.us wrote: I'm porting an old rails app to Rails 4 and got stumped tonight on time conversions. This worked: Loading development environment (Rails

Re: [Rails] Track views in Rails app

2013-08-18 Thread Tamara Temple
On Aug 18, 2013, at 4:12 AM, Linus Pettersson linus.petters...@gmail.com wrote: Thanks for your reply. I have a like system (you can only like, not dislike) as well but I also want to track views as another measure of popularity. It doesn't have to be super exact but would be great if

Re: [Rails] Converting a Time to a String and Back in Rails 4.0.0

2013-08-18 Thread Tamara Temple
On Aug 15, 2013, at 7:15 PM, Phil p...@edgedesign.us wrote: I'm porting an old rails app to Rails 4 and got stumped tonight on time conversions. This worked: Loading development environment (Rails 2.3.18) Time.now.to_s = 08/14/2013 07:09PM Time.now.to_s.to_time = Wed Aug 14

Re: [Rails] Capybara with AJAX

2013-08-18 Thread Tamara Temple
On Aug 17, 2013, at 10:08 AM, Garrett Wilson garrett.l.wils...@gmail.com wrote: I have a table that is populated using AJAX pagination (Kaminari). What I'm trying to do is view this page and make sure there is certain content within the table. This causes a problem with my Capybara test

[Rails] Any experience or thoughts about Stormpath and their like?

2013-08-15 Thread Tamara Temple
Just ran across Stormpath [1] in a recent mailing [2]. They provide a hosted user management service instead of you having write one (using Devise and CanCan, for example). Has anyone used them or anything like them? What do you think about off-loading your app's authentication and

Re: [Rails] Sharing post via email on social Q and A site

2013-08-13 Thread Tamara Temple
On Aug 12, 2013, at 11:05 PM, rubist2013 rails li...@ruby-forum.com wrote: From a rails social question and answer site, I want to allow users to share a question via email. The question would have an email icon that opens a modal where an email address, name, and comments could be entered.

Re: [Rails] How to make attachment_fu generate RESTFUL URL

2013-08-11 Thread Tamara Temple
On Aug 11, 2013, at 10:17 PM, danny thyui li...@ruby-forum.com wrote: I use an imaging sdk which can create thumbnails found on the internet . Install it and it becomes a selectable processing option.Then you can create thumbnails in your image in any program at all, including Adobe Acrobat

Re: [Rails] Images with fingerprinting

2013-08-09 Thread Tamara Temple
On Aug 8, 2013, at 2:08 PM, Nick Khamis sym...@gmail.com wrote: Looking through the asset pipeline documentation, I was able to make everything work as expected. Really nice!! However, not for images that we are loading using a variable (i.e., wine.picture) which basically resolves to

Re: [Rails] Remote form in popover processing as html

2013-08-09 Thread Tamara Temple
On Aug 8, 2013, at 11:54 AM, Thomas Dragsbæk tdragsb...@gmail.com wrote: Im trying to submit a rails remote form in a bootstrap popover, but it keeps processing as html. There are no js errors, controller responds to js and i have a create.js.erb. Can someone please point me to the problem?

Re: [Rails] Getting started with rails guide: Encountering problems at Section 5.1

2013-08-09 Thread Tamara Temple
On Aug 7, 2013, at 11:28 AM, Jenson Lu jenson@gmail.com wrote: Hi people, I need some help here. I'm new to ROR, and is following the guideline on Getting started with rails. The inputs have been accurate and are running well until section: 5.1 Laying down the ground word. While

Re: [Rails] Getting started with rails guide: Encountering problems at Section 5.1

2013-08-09 Thread Tamara Temple
On Aug 9, 2013, at 11:30 AM, Jordon Bedwell envyge...@gmail.com wrote: On Fri, Aug 9, 2013 at 10:53 AM, Tamara Temple tamouse.li...@gmail.com wrote: At this stage of the game, it's hard to hear yer doin it rong but something did go wrong. You should not have received that message if you

Re: [Rails] I need help in cloning a website

2013-08-07 Thread Tamara Temple
On Aug 6, 2013, at 4:48 AM, Raphael Manaloto raphnaj...@gmail.com wrote: as you can see im stuck here,anyone know how to fix this so i can use gem install libv8 -v 3.3.10.4 command? thanks :D Did you see the error that said Python not found ? -- You received this message because you

  1   2   >