Re: [Rails] Moving away from web agency

2013-10-28 Thread tamouse mailing lists
r hire" situation, in which case the OP's company is the copyright owner. It's tricky, and obviously there is *lots* we don't know. Still stand by the advice of OP to seek legal advice immediately. (Which I know you were not discounting, Walter.) > Walter > > On Oct 2

Re: [Rails] Moving away from web agency

2013-10-28 Thread tamouse mailing lists
I just want to caution the OP. You may not own the code. It depends upon who retains copyright, and licensing, etc. If you have paid the agency for their work, which you should do if you have a contract, you *may* have a right to the source code, or you may not, again, depending on your contract. J

Re: [Rails] Rails 4 and HABTM Checkboxes: Unpermitted parameters error

2013-10-25 Thread tamouse mailing lists
On Wed, Oct 23, 2013 at 6:18 PM, Walter Lee Davis wrote: > Can anyone point me to a definitive guide to the new strong parameters? I > didn't see it in the Rails Guides anywhere. Hard to say about "definitive", but this is my go-to: http://edgeguides.rubyonrails.org/action_controller_overview.h

Re: [Rails] resource management tool.

2013-06-03 Thread tamouse mailing lists
sorry, that term is just too ambiguous. what sort of resources? what/how do you want to manage them? what do you want this plug-in to actually do? On Jun 3, 2013 5:37 AM, "Dani Dani" wrote: > Hi, > Does anyone know any good plugin/opensource "resource management tool" ? > I need it for my cours

Re: [Rails] remove rails application safely and neatly on debian server

2013-05-29 Thread tamouse mailing lists
On Wed, May 29, 2013 at 7:25 AM, Anjania Catus wrote: > Hi all, maybe it will be a strange question but as a sysadmin , I have to > move a rails application with his environnement from a server to > another(vps) . I would like know how can I clean correctly and safely the > old server (the appli

Re: [Rails] How to run view helpers from rails console?

2013-05-29 Thread tamouse mailing lists
Test them from tests. On Wed, May 29, 2013 at 4:25 PM, Wins Lin wrote: > With >> rails console --sandbox > I cant test my models, save data to db and all will be rolled back > after. > > But is it possible to test view helpers from console? I talk about these > helpers: >> post_path >> link_to >>

Re: [Rails] yaml and ip addresses

2013-05-22 Thread tamouse mailing lists
On Tue, May 21, 2013 at 11:27 AM, John Merlino wrote: > I was using this code > > url = "http://#{agent_host}:#{agent_port}/home/create_unit?"; > > > And it worked fine in development but for my config.yml, I was > specifying localhost for agent_host. However in production, agent_host > is

Re: [Rails] gem install rails ERROR

2013-05-20 Thread tamouse mailing lists
On Mon, May 20, 2013 at 10:36 PM, Majid L. wrote: > Hi, I am new in mac and ruby on rails, please bear with me if I asked > stupid questions : > > I tried to install, rails in my mac :" > > bdelmajids-iMac:~ majid$ gem install rails > ERROR: While executing gem ... (Gem::FilePermissionError) >

Re: [Rails] Re: Help needed - No route matches [GET] "/draw/load"

2013-05-20 Thread tamouse mailing lists
On Tue, May 21, 2013 at 12:01 AM, Rochit Sen wrote: > Rochit Sen wrote in post #1109638: >> mike wrote in post #1109637: >>> On Monday, May 20, 2013 1:26:20 PM UTC-4, Ruby-Forum.com User wrote: def load >>> You need to configure the route in the config/routes.db file. In this >>>

Re: [Rails] Re: Re: Re: Capybara with redirect

2013-05-17 Thread tamouse mailing lists
and now i'm not going to bother spending any more time on it On Fri, May 17, 2013 at 11:58 PM, tamouse mailing lists wrote: > maybe read my follow up > > > On Fri, May 17, 2013 at 1:44 AM, Assaf Shomer wrote: >> tamouse mailing lists wrote in post #1108881: >>>

Re: [Rails] Re: Re: Re: Capybara with redirect

2013-05-17 Thread tamouse mailing lists
maybe read my follow up On Fri, May 17, 2013 at 1:44 AM, Assaf Shomer wrote: > tamouse mailing lists wrote in post #1108881: >> https://github.com/assafshomer/clear_button/pull/1 >> >> On Mon, May 13, 2013 at 11:20 PM, tamouse mailing lists > > Tamouse, thank you. >

Re: [Rails] Re: French sentences appearing weird in Rails Website

2013-05-16 Thread tamouse mailing lists
On May 16, 2013 8:23 AM, "Matt Jones" wrote: > > > > On Wednesday, 15 May 2013 07:30:14 UTC-4, UA wrote: >> >> I have a Rails app. One of my clients is importing French Text which >> is appearing weirdly. Check below example: >> >> 1. str = "--- \nFrench: \"3. Combien de r\\xC3\\xA9gions y a-t

Re: [Rails] How to use selenium combined with cucumber on rails

2013-05-16 Thread tamouse mailing lists
On Tue, May 14, 2013 at 1:58 PM, Nike Mike wrote: > How to combine cucumber features with selenium that runs on rails 3.2 This might be a good start to look at: https://github.com/searls/remote-capybara-cucumber-example -- You received this message because you are subscribed to the Google Grou

Re: [Rails] French sentences appearing weird in Rails Website

2013-05-16 Thread tamouse mailing lists
On Wed, May 15, 2013 at 6:30 AM, UA wrote: > I have a Rails app. One of my clients is importing French Text which > is appearing weirdly. Check below example: > > 1. str = "--- \nFrench: \"3. Combien de r\\xC3\\xA9gions y a-t-il > au Cameroon?\"\nEnglish: 3. How many regions are there in Camer

Re: [Rails] nested form update issue

2013-05-15 Thread tamouse mailing lists
On May 15, 2013 3:09 AM, "Saravanan P" wrote: > > Hello Everyone, > > I am getting following error while updating the record. i.e I have "save draft" function so I am saving data while user click "save draft" using ajax and I will change the form as update and set message id and payment id in ajax

Re: [Rails] Re: Re: Capybara with redirect

2013-05-13 Thread tamouse mailing lists
On Mon, May 13, 2013 at 11:23 PM, tamouse mailing lists wrote: > https://github.com/assafshomer/clear_button/pull/1 > > On Mon, May 13, 2013 at 11:20 PM, tamouse mailing lists > wrote: >> let me push my change up and do a PR and see if you can see a diff: it >> works for

Re: [Rails] Re: Re: Capybara with redirect

2013-05-13 Thread tamouse mailing lists
https://github.com/assafshomer/clear_button/pull/1 On Mon, May 13, 2013 at 11:20 PM, tamouse mailing lists wrote: > let me push my change up and do a PR and see if you can see a diff: it > works for me. > > On Mon, May 13, 2013 at 12:28 AM, Assaf Shomer wrote: >> tamouse mail

Re: [Rails] Re: Re: Capybara with redirect

2013-05-13 Thread tamouse mailing lists
let me push my change up and do a PR and see if you can see a diff: it works for me. On Mon, May 13, 2013 at 12:28 AM, Assaf Shomer wrote: > tamouse mailing lists wrote in post #1108719: >> On Sun, May 12, 2013 at 4:46 PM, Assaf Shomer >> wrote: >>>> >>>>

Re: [Rails] Re: Capybara with redirect

2013-05-12 Thread tamouse mailing lists
On Sun, May 12, 2013 at 4:46 PM, Assaf Shomer wrote: > tamouse mailing lists wrote in post #1108701: >> On Sun, May 12, 2013 at 3:11 PM, Assaf Shomer >> wrote: >>> If you feel inclined to help, please clone the repo and run the test >>> mentioned in the readme

Re: [Rails] Capybara with redirect

2013-05-12 Thread tamouse mailing lists
On Sun, May 12, 2013 at 3:11 PM, Assaf Shomer wrote: > I am having an issue where a feature works fine but the corresponding > test fails, and I can't understand why. > I created a mock application to demonstrate the problem. > > https://github.com/assafshomer/clear_button > > All it does is show

Re: [Rails] Re: Re: Using gem in rails application

2013-05-12 Thread tamouse mailing lists
On Sat, May 11, 2013 at 1:11 AM, Unix R. wrote: >> Okay, cool, I can see now what you are thinking of. >> >> Starting out, I'd make a module, gem, engine, whatever you choose, >> that just allows you to test out the API; keeping it in it's own space >> will help keep your application modular; you

Re: [Rails] rake aborted error.

2013-05-12 Thread tamouse mailing lists
On Sun, May 12, 2013 at 4:22 AM, Iago A. wrote: > Hy guys, how I fix this problem? What do you see when you follow the instructions on line 2: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. -- You received this message because y

Re: [Rails] advice, examples, creating front-end for postgresql

2013-05-12 Thread tamouse mailing lists
On Sat, May 11, 2013 at 2:17 PM, spectergeek wrote: > Creating a production DB (not production as in rails terms but production as > in from sales order to shipping) for a small business. I'm completely new to > rails and fairly new to web development. I'm going through the tutorial > here http:/

Re: [Rails] Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?

2013-05-12 Thread tamouse mailing lists
I recently installed all this on a new macbook pro, with mountain lion as of last october. Steps I took were: 1. Install and set up homebrew package manager [http://brew.sh/] 2. Install mysql via homebrew 3. Install rvm, ruby, gem, rails [http://rvm.io] 4. Create rails app [guides.rubyonrails.org]

Re: [Rails] Re: Using gem in rails application

2013-05-10 Thread tamouse mailing lists
On Fri, May 10, 2013 at 8:44 AM, Unix R. wrote: > tamouse mailing lists wrote in post #1108475: >> On Thu, May 9, 2013 at 8:47 AM, Unix R. wrote: >>> any guide and example will really appreciate and help me to learn. >> I guess my first question is: if you don'

Re: [Rails] why i am getting this error

2013-05-09 Thread tamouse mailing lists
On Thu, May 9, 2013 at 7:20 AM, Scott Eisenberg wrote: > Try this for the naming conventions > > http://itsignals.cascadia.com.au/?p=7 > > > On May 9, 2013, at 3:26 AM, "ank k." wrote: > > hi!! i am a newbie in ROR, I am getting this error i understand what the > error says but don'y know why i a

Re: [Rails] Using gem in rails application

2013-05-09 Thread tamouse mailing lists
On Thu, May 9, 2013 at 8:47 AM, Unix R. wrote: > Hello Experts, > > i am trying to use pulp gem on my ruby application, i did the gem > installation and generated new scaffold, but i am not able to get how i > can use that gem in my application ? > > https://github.com/duritong/ruby-pulp > > this

Re: [Rails] ArgumentError: invalid %-encoding

2013-05-09 Thread tamouse mailing lists
On Wed, May 8, 2013 at 7:20 PM, Waynn Lue wrote: > I'm getting exceptions from my server when a bot starts crawling random > incorrect un-escaped URLs (up to a few thousand now), specifically with % in > the URL. I've looked at a bunch of issues in rack here and here and rails > here, and looked a

Re: [Rails] Sending errors in response when using 'render'

2013-05-09 Thread tamouse mailing lists
On Thu, May 9, 2013 at 11:59 AM, Sumit Srivastava wrote: > Hi, > > I have a partial which is being rendered in a view in controller A. This > partial has a form which calls 'update' action in controller B. If update > fails I have the render back the original view again with the proper errors. > I

Re: [Rails] Search form AND condition - Not working

2013-05-08 Thread tamouse mailing lists
> 2013/5/7 Colin Law >> >> On 7 May 2013 13:17, tamouse mailing lists >> wrote: >> > On Tue, May 7, 2013 at 1:08 AM, Maddy wrote: >> >> Hi Folks, >> >> >> >> My search fields, >> >> >> >> Firstname* >&

Re: [Rails] Net::HTTP

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 12:43 PM, John Merlino wrote: > I'm looking at the documentation: > http://ruby-doc.org/stdlib-2.0/libdoc/net/http/rdoc/Net/HTTP.html > > And I notice two uses of Net::HTTP. Both are using GET requests. But > what's the difference? When to use which? > > Net::HTTP.start(uri.

Re: [Rails] Re: validates :uniqueness apparently doesn't

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 1:37 PM, Robert Walker wrote: > Fritz Anderson wrote in post #1108098: >> ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0] >> Rails 3.2.13 >> >> I have a validates ... :uniqueness constraint on one of the attributes >> of an ActiveRecord class. >> >> In my test

Re: [Rails] Roll your own authentication?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 2:06 PM, Linus Pettersson wrote: > Absolutely, that's a valid argument. However, if you need to do some > customizations and start monkey patching a gem you may open it up for > vulnerabilities as well, right? Plus, it would make your code messy when you > have some code in

Re: [Rails] Search form AND condition - Not working

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 1:08 AM, Maddy wrote: > Hi Folks, > > My search fields, > > Firstname* > Lastname* > MI - Middle initial > State* > ID > Birthday > > when people will search John Bolton in any state for example AL (Alabama), > all John Bolton names in only AL will show up. > So if there are

Re: [Rails] Roll your own authentication?

2013-05-06 Thread tamouse mailing lists
On Mon, May 6, 2013 at 12:38 PM, Linus Pettersson wrote: > Hi! > > I watched this video the other day: http://vimeo.com/39498553 > where they argue that it may be a better idea to roll your own > authentication solution using has_secure_password instead of using, for > instance, Devise. > > I star

Re: [Rails] Guide user gem

2013-05-03 Thread tamouse mailing lists
On Wed, May 1, 2013 at 9:48 AM, HaCos wrote: > Hello, i am looking for a technique or even better a gem that i could use in > order to design a step-by-step guide for my members when they first sign-in. > To be more specific i need a way to guide users after they register in order > to to show the

Re: [Rails] how to encrypt password in php

2013-05-03 Thread tamouse mailing lists
On Thu, May 2, 2013 at 10:51 PM, Emil S wrote: > How about migrating your user table using ActiveRecord? > I can get the data of a user from the old DB in some way, and migrate into > the new DB using this : > > User.create(email: 't...@test.com', password: 'unencrypted password from old > db', pa

Re: [Rails] How to use scopes in rails to query the database for a subset of information and display it

2013-04-29 Thread tamouse mailing lists
On Apr 29, 2013 5:40 PM, "akkdio" wrote: > > am a beginner and I appreciate an answer to help me understand where my knowledge gap is: > > The app is to display a post. The posts belong to a category (appetizers, entrees...) My thought was to use scopes to display all the appetizers on the posts

[Rails] Any one @ RailsConf PDX?

2013-04-28 Thread tamouse mailing lists
I am here in PDX this week @ RailsConf2013; anyone else attending? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegrou

Re: [Rails] join table naming

2013-04-26 Thread tamouse mailing lists
On Wed, Apr 24, 2013 at 2:47 PM, Colin Law wrote: > On 24 April 2013 19:00, Dave Castellano wrote: >> Hi, >> I’m an amateur learning rails and could use some help… >> I created a join table “pictures_questions” >> and append to it in the following way: >> @picture = Picture.new(params[:picture])

Re: [Rails] Part time rails job for learning experience

2013-04-26 Thread tamouse mailing lists
On Thu, Apr 25, 2013 at 1:30 AM, Arvind Vyas wrote: > I am also looking for part time job ,i have 1.3 year of exp in rails > > > On Thu, Apr 25, 2013 at 4:39 AM, Numan Ilyas wrote: >> >> Hi guys, >> >> I am looking for part time job as learning experience for rails. I've >> total 6 years of exper

Re: [Rails] Re: Examples of long AND WELL-WRITTEN Ruby scripts

2013-04-26 Thread tamouse mailing lists
On Thu, Apr 25, 2013 at 10:18 AM, Pat Johnson wrote: > No, there is no "ruby generate" or "ruby new" commands that would generate a > skeleton program. Ruby itself is just like any other compiled on the fly > interpreted programming language. You can simply write code in a text file > and execute

Re: [Rails] My rails app keeps on crashing and required server restart.

2013-04-24 Thread tamouse mailing lists
On Wed, Apr 24, 2013 at 2:56 AM, jane d. wrote: > I have been looking for answer.but nothing quite fit my description. My > rails app keeps crashing with routing error. Look at what it's trying parse as a route: ActionController::RoutingError (no route found to match "/javascripts/prototype.lite

Re: [Rails] Learning ROR testing

2013-04-22 Thread tamouse mailing lists
On Apr 22, 2013 6:52 AM, "Javier Quarite" wrote: > > > On Sun, Apr 21, 2013 at 11:49 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: >> >> The RSpec book from pragprog actually spends a bit of time discussing rails testing using both cucumb

Re: [Rails] Learning ROR testing

2013-04-21 Thread tamouse mailing lists
On Apr 21, 2013 10:53 AM, "ROR User" wrote: > > Can anyone suggest an advanced resource for learning proper ROR testing? I've been writing web apps with ROR for nearly a year now but have been neglecting to write the proper test suites as I'm not sure exactly what requires a test and what doesn't

Re: [Rails] Re: Where to find info about seed.rb, db:seed functionality?

2013-04-21 Thread tamouse mailing lists
On Apr 21, 2013 11:24 AM, "Frederick Cheung" wrote: > > On Sunday, April 21, 2013 3:15:37 PM UTC+1, tamouse wrote: > > On Sun, Apr 21, 2013 at 6:39 AM, Wins Lin wrote: > > > > > Dheeraj Kumar wrote in post #1106428: > > > > > > Seeds have been in Rails for quite some time; how does information >

Re: [Rails] Re: Where to find info about seed.rb, db:seed functionality?

2013-04-21 Thread tamouse mailing lists
On Sun, Apr 21, 2013 at 6:39 AM, Wins Lin wrote: > Dheeraj Kumar wrote in post #1106428: >> You could refer the edge guides: >> http://edgeguides.rubyonrails.org/migrations.html#migrations-and-seed-data > > Thank you. Didn't know about this resource. Seeds have been in Rails for quite some time;

Re: [Rails] Missing :bucket option (S3), while it is defined in production initializers.

2013-04-20 Thread tamouse mailing lists
On Apr 19, 2013 2:26 AM, "Jan van der Pas" wrote: > > I got my S3 credentials defined in my production.rb, linkwise to this heroku post. However when I'm testing it on Heroku, I get this error in my logs: "ArgumentError (missing required :bucket option)". What could be wrong? > with the complete

Re: [Rails] Re: How to get value from Javascript Input in Ruby Controller?

2013-04-19 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 10:50 AM, Ronald Zhang wrote: > Currently the javascript contains functions for a calendar app so users > do not have to insert the date manually > > Here is some of the HTMl > > > readonly style = "border:0px;"> > "cal.select(document.forms['calendar1'].date1,'anchor1'

Re: [Rails] I have done my first open source project, star rating gem for rails apps

2013-04-17 Thread tamouse mailing lists
Well done. I haven't had a chance to do more than glance at the README, but it looks quite complete and useful. On Wed, Apr 17, 2013 at 1:22 PM, mónster wrote: > Hello, > Along back I've been developing my very first open source project and > finally decided to publish it. It is a star rating sys

Re: [Rails] Conditional respond_to doesn't do redirect

2013-04-16 Thread tamouse mailing lists
On Tue, Apr 16, 2013 at 7:15 PM, Wins Lin wrote: > I have such a code in my "create" method: > > respond_to do |format| > if user.save() > format.html {redirect_to(:action => "show")} > else > format.js > end > end > > So if save() is successful I want full redirect to a different pa

Re: [Rails] Dynamically generating models and/or migrations at runtime

2013-04-15 Thread tamouse mailing lists
Did you ask this question twice? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, sen

Re: [Rails] Dynamic creation of models and/or tables in Rails

2013-04-15 Thread tamouse mailing lists
On Sun, Apr 14, 2013 at 7:19 PM, wrote: > I'm working on a project at the moment that has a rather unusual requirement > and I'm hoping to get some advice on the best way to handle it or even some > pointers to info that can help me build a solution. > > Ok, so this is what I need to do. The appl

Re: [Rails] Re: How to initialize variables automatically on application bootstrap?

2013-04-15 Thread tamouse mailing lists
On Mon, Apr 15, 2013 at 7:10 AM, Wins Lin wrote: > tamouse mailing lists wrote in post #1105626: >> On Sun, Apr 14, 2013 at 6:31 PM, tamouse mailing lists >> wrote: >> The Rails application is not brought up and shut down for every >> request. It lives in a long runn

Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread tamouse mailing lists
On Sun, Apr 14, 2013 at 6:31 PM, tamouse mailing lists wrote: > On Sun, Apr 14, 2013 at 5:26 PM, Wins Lin wrote: >> How to set some variables on bootstap? I need a few variables to be >> initialized with default values every request. For example in ZF there >> is a class Bo

Re: [Rails] How to initialize variables automatically on application bootstrap?

2013-04-14 Thread tamouse mailing lists
On Sun, Apr 14, 2013 at 5:26 PM, Wins Lin wrote: > How to set some variables on bootstap? I need a few variables to be > initialized with default values every request. For example in ZF there > is a class Bootstrap whose methods are called automatically every > request. Is there something similar

Re: [Rails] Redirect_to without reload?

2013-04-06 Thread tamouse mailing lists
On Apr 4, 2013 8:51 PM, "Dave Castellano" wrote: > > Hi, > > I am slowly learnng ROR and wondering if anyone can point me in the > general direction to go with the following problem. > > User is filling out a form (question model) and needs to leave the page > to select an image from a gallery (

Re: [Rails] Re: How to create 10000 pseudo data for Testing in RoR

2013-04-06 Thread tamouse mailing lists
On Apr 5, 2013 9:18 PM, "haxuan lac" wrote: > > I tried create 1 pseudo by Faker but it's very slow. > I fake 1000 record about 20 minutes. > And 1 record take me 2-3 hours. > please give me some advice about this time I had done with fake pseudo > data(1000 and 1 pseudo). > Thanks

Re: [Rails] Help with single page application structure

2013-04-04 Thread tamouse mailing lists
On Apr 4, 2013 7:20 AM, "Johan Vauhkonen" wrote: > > Is it a viable alternative to separate client and back end? > > To have AngularJS take care of everything client side and Rails take care of only the back end? > Absolutely, you can go so far as to have your SPA initial download be a static ind

Re: [Rails] Help with single page application structure

2013-04-04 Thread tamouse mailing lists
On Apr 4, 2013 1:35 AM, "Johan Vauhkonen" wrote: > > I think for me, using Sinatra would mean I'd have to write a lot of things that Rails bring which I don't want to Agreed; we were talking alternatives and for his needs, he really only needed the pipeline.I was just trying to illustrate that st

Re: [Rails] Help with single page application structure

2013-04-03 Thread tamouse mailing lists
On Tue, Apr 2, 2013 at 8:43 AM, Johan Vauhkonen wrote: > I'm planning on creating a single page application using AngularJS on the > client side. > > I'm not sure if I should use Rails as it is, or the Rails API gem or some > other solution. > Anyone got any suggestions on how you structured your

Re: [Rails] Re: How to set exception in client side validation gem

2013-04-03 Thread tamouse mailing lists
On Tue, Apr 2, 2013 at 6:31 PM, Barry wrote: > Ok guys, finally gem caused several issues, which was hard to debug, so > finally I just set up my own jquery validation, and it was no so hard as I > imagined. Like this solution, not always gems are suitable, and it was good > practice) Now that yo

Re: [Rails] invoking helper method in controller and view breaks the separation of concern?

2013-04-03 Thread tamouse mailing lists
I am unfamiliar with this concept of separating helper functions. In the interest of DRY code, what you're doing makes complete sense to me. On Tue, Apr 2, 2013 at 4:54 PM, John Merlino wrote: > I came across some posts which postulate that it's undesirable to > share helper methods across contro

Re: [Rails] Re: Split ActiveRecord::Base model

2013-03-27 Thread tamouse mailing lists
On Wed, Mar 27, 2013 at 3:26 AM, tamouse mailing lists wrote: > On Tue, Mar 26, 2013 at 9:15 AM, Paulo Ribeiro > wrote: >> >> >> Em terça-feira, 26 de março de 2013 01h49min23s UTC-3, tamouse escreveu: >>> >>> On Mon, Mar 25, 2013 at 2:51 PM, Paulo Ribe

Re: [Rails] Re: Split ActiveRecord::Base model

2013-03-27 Thread tamouse mailing lists
On Tue, Mar 26, 2013 at 9:15 AM, Paulo Ribeiro wrote: > > > Em terça-feira, 26 de março de 2013 01h49min23s UTC-3, tamouse escreveu: >> >> On Mon, Mar 25, 2013 at 2:51 PM, Paulo Ribeiro >> wrote: >> > Em segunda-feira, 25 de março de 2013 14h39min09s UTC-3, Matt Jones >> > escreveu: >> >> On Sund

Re: [Rails] Removing session element

2013-03-25 Thread tamouse mailing lists
On Mon, Mar 25, 2013 at 11:59 PM, Avi wrote: > I have an array:- > > session[:new] = Array.new > session[:new] = [1, 2, 3, 4] - I am keeping these object ids in session. > > I want to delete one id from the session - as session[:new] = [1, 2, 3] > How to delete one of the ids ? Off the top of m

Re: [Rails] Please help: quotes in views

2013-03-25 Thread tamouse mailing lists
On Mon, Mar 25, 2013 at 2:58 PM, Y S wrote: > How should we approach the problem is the tab character is to be included in > the string. For example, > > <% c = '\t' %> > > just shows the tab as a space. The tab char (\t) is not converted by html_escapes() as far as I know; if you want to make i

Re: [Rails] Re: Split ActiveRecord::Base model

2013-03-25 Thread tamouse mailing lists
On Mon, Mar 25, 2013 at 2:51 PM, Paulo Ribeiro wrote: > Em segunda-feira, 25 de março de 2013 14h39min09s UTC-3, Matt Jones > escreveu: >> On Sunday, 24 March 2013 12:59:00 UTC-4, Paulo Ribeiro wrote: >>> >>> Thx for your reply. I want to make the models more light. I want to make >>> models what

Re: [Rails] Re: Installation Problem

2013-03-25 Thread tamouse mailing lists
Can you run git remote -v and see what it says? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to

Re: [Rails] Delayed methods

2013-03-23 Thread tamouse mailing lists
> On Sat, Mar 23, 2013 at 5:37 PM, tamouse mailing lists > wrote: >> >> On Sat, Mar 23, 2013 at 1:20 PM, Jodi Showers wrote: >> > I'm just about to scale to a second app server - so good timing >> > >> > in which ways did you find cron to be a p

Re: [Rails] Delayed methods

2013-03-23 Thread tamouse mailing lists
On Sat, Mar 23, 2013 at 4:46 PM, Colin Law wrote: > On 23 March 2013 21:37, tamouse mailing lists wrote: >> ... >> The primary issue when you bring in multiple servers is >> synchronization of the workers. Cron can't do that, as it only knows >> about one serve

Re: [Rails] Delayed methods

2013-03-23 Thread tamouse mailing lists
see the short and long term options before > them. > > J > > > > > On Sat, Mar 23, 2013 at 2:01 PM, tamouse mailing lists > wrote: >> >> Please bottom post (appending). It makes responses easier to find. >> >> On Sat, Mar 23, 2013 at 10:32 A

Re: [Rails] Delayed methods

2013-03-23 Thread tamouse mailing lists
Please bottom post (appending). It makes responses easier to find. On Sat, Mar 23, 2013 at 10:32 AM, Jodi Showers wrote: > that is a good thinking, just like normalization - then comes a time to > denormalize > > we have millions of visitors per month - and about 50 asynch processes - > having on

Re: [Rails] Re: Trouble after cloning my app from Github

2013-03-22 Thread tamouse mailing lists
On Fri, Mar 22, 2013 at 10:23 AM, Michael Armistead wrote: > Well, I ended up solving the problem. After doing the things stated in this > thread, and many other things found online with no success, I rebooted my > computer. When it booted up, Ubuntu told me it was running in low graphics > mode e

Re: [Rails] Re: How to display div inline?

2013-03-22 Thread tamouse mailing lists
On Fri, Mar 22, 2013 at 11:55 AM, Barry wrote: > sorry, problem is solved, I just needed so set up unique id for every > element I create Unique id's are in the standard: http://www.w3.org/TR/html401/struct/global.html#h-7.5.2 > and than every new element has needed lenght What does this part m

Re: [Rails] Re: Trouble after cloning my app from Github

2013-03-21 Thread tamouse mailing lists
On Thu, Mar 21, 2013 at 8:41 PM, Michael Armistead wrote: > I think There's a problem with my database. It looks like the majority of my > tests say "could not find table 'users'". I have tried "rake db:setup" and > "rake db:migrate" but no luck. > Thanks!!! > > > On Thursday, March 21, 2013 6:24:

Re: [Rails] Please help: quotes in views

2013-03-21 Thread tamouse mailing lists
On Thu, Mar 21, 2013 at 4:27 PM, Y S wrote: > Say I have a hidden field inside a form which tells me which quote character > some file uses. The details are irrelevant, but I need to have a string > value that could have a double quote. Assume we have a variable > > @quote_char = '"' > > Now, in t

Re: [Rails] rails hosting on godaddy

2013-03-21 Thread tamouse mailing lists
On Thu, Mar 21, 2013 at 2:27 PM, mukul saharia wrote: > friends, > i want to host my rails app on godaddy... can any one tell me complete > process... What kind of service? Hosted web, VPS, ?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr

Re: [Rails] Help me about Bcrypt-ruby

2013-03-20 Thread tamouse mailing lists
On Tue, Mar 19, 2013 at 1:37 AM, haxuan lac wrote: > I'm create a login form using Bcrypt-ruby but have error: > > uninitialized constant User::BCrypt What is User::BCrypt supposed to be? Where/how did you define it? (It appears you didn't, actually. Show some code so we have a half a chance of h

Re: [Rails] Re: Change 'nil' using literal notation?

2013-03-20 Thread tamouse mailing lists
On Wed, Mar 20, 2013 at 8:11 PM, Dheeraj Kumar wrote: > Jordan Bedwell is correct. Ruby's constants are /meant/ to be not changed, > but you can define a constant and change its value later. Ruby will produce > a warning 'already initialized constant' > > Also note that your constant's internal re

Re: [Rails] Method inside method in controller

2013-03-20 Thread tamouse mailing lists
On Tue, Mar 19, 2013 at 7:36 AM, Barry wrote: > I'm trying to follow DRY way of coding. I decided to make my code cleanes. > Basically, app has 2 types of what to show to user, depending on content. So > I want to set up inside show method conditional, and then two different > inner methods for co

Re: [Rails] Re: Rails 4.0 Example app

2013-03-20 Thread tamouse mailing lists
On Wed, Mar 20, 2013 at 6:35 AM, wrote: > Thank you for the suggestion, yes of course I would have given up years ago > without RBs fantastically clear material. > > However edit multiple does not work on multi-level nested attributes. Yet > edit a single multi-level nested attribute (using updat

Re: [Rails] Abridged summary of rubyonrails-talk@googlegroups.com - 17 Messages in 10 Topics

2013-03-17 Thread tamouse mailing lists
On Sun, Mar 17, 2013 at 7:33 PM, Dave Aronson wrote: > On Sun, Mar 17, 2013 at 5:51 PM, tamouse mailing lists > wrote: > >> Good grief. Please don't include an *entire* digest in your messages. > > You think he's even still around to bother reading your repl

Re: [Rails] Abridged summary of rubyonrails-talk@googlegroups.com - 17 Messages in 10 Topics

2013-03-17 Thread tamouse mailing lists
On Sun, Mar 17, 2013 at 4:08 AM, Anthony Ortiz wrote: > Hey guys, Good grief. Please don't include an *entire* digest in your messages. -- 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 em

Re: [Rails] Do you ALWAYS use "bundle exec rspec spec" tests?

2013-03-16 Thread tamouse mailing lists
On Sat, Mar 16, 2013 at 4:26 AM, Colin Law wrote: > On 16 March 2013 04:21, Jason Hsu, Android developer > wrote: >> I'm going through Michael Hartl's Rails tutorial, and I am happy to report >> that (as of the end of section 7) I'm able to get things working. (That >> said, I skipped the sectio

Re: [Rails] Re: Implementing Twitter's new Typeahead in Rails

2013-03-15 Thread tamouse mailing lists
come to new land, expect everyone speak your language... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To

Re: [Rails] extracting tables content from a document in ruby

2013-03-15 Thread tamouse mailing lists
On Thu, Mar 14, 2013 at 9:06 AM, Scott Ribe wrote: > On Mar 14, 2013, at 2:52 AM, tamouse mailing lists wrote: > >> Hmmm... dunno whether to laugh or cry... > > Definitely don't cry. > > Unless you're the customer ;-) I know Kristen was being rather tongue-in

Re: [Rails] Re: Rails adding computed field to a join of multiple tables

2013-03-15 Thread tamouse mailing lists
On Thu, Mar 14, 2013 at 5:16 AM, Sumit Srivastava wrote: > Also I did try it this way, > > arel = OfferOrder.includes(:a, :b).joins(:c).select('(CASE WHEN > ISNULL(c.fields2) THEN c.fields1 ELSE c.field2 END) ') > > Got error, > > ActiveModel::MissingAttributeError (missing attribute: a_id): > > >

Re: [Rails] Re: No Migration Files are created

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 4:08 AM, Colin Law wrote: > On 15 March 2013 07:56, Ryo Saeba wrote: >> All right, this is what I get, wehen I type "rails g Model DingDong" > > Please don't top post, it makes it difficult to follow the thread. > Insert your replies inline in the previous message. Rememb

Re: [Rails] extracting tables content from a document in ruby

2013-03-14 Thread tamouse mailing lists
Hmmm... dunno whether to laugh or cry... On Mar 13, 2013 2:15 PM, "Petite Abeille" wrote: > > On Mar 13, 2013, at 8:08 PM, "Shefali S." wrote: > > > How to extract table contents from a doc,docx and pdf using ruby on > > rails .Please reply as soon as possible > > Thank You..!!! > > Try this:

Re: [Rails] Heroku db id Starting with 1000

2013-03-14 Thread tamouse mailing lists
seq', 1)" > end > > & on console by :- heroku pg:reset DATABASE --confirm MY_APP_NAME > > So, now every time I reset, I need to run the migration & it works. > > > On Wed, Mar 13, 2013 at 2:16 AM, tamouse mailing lists < tamouse.li...@gmail.com> wr

Re: [Rails] Heroku db id Starting with 1000

2013-03-12 Thread tamouse mailing lists
On Tue, Mar 12, 2013 at 7:58 AM, avinash behera wrote: > The main reason I am doing this is :- > I am uploading some images to s3 amazon. > I am saving those images in s3 through rake script. > I have two tables having images. > Both are saving in one folder in s3. Do you mean they are being save

Re: [Rails] Re: Is it possible to make attachment_fu to use :file_system for storage during tests?

2013-03-08 Thread tamouse mailing lists
On Fri, Mar 8, 2013 at 10:24 PM, Roman Mirk wrote: > Could you please be more specific or provide an example if possible? Read up on rspec mocks in the RSpec book, and there are several examples around the net. -- You received this message because you are subscribed to the Google Groups "Ruby

Re: [Rails] Is it possible to make attachment_fu upload to use :file_system for storage during tests?

2013-03-08 Thread tamouse mailing lists
On Fri, Mar 8, 2013 at 7:54 PM, Arman Mirk wrote: > I'm using Attachment_fu for a model that has 3 attachment fields with s3 > for storage. > > Unit testing this model is very slow. This made me think if there is a > way to switch between storage types during testing and > development/production?

Re: [Rails] Re: A NJ/NYC based RoR developer

2013-03-07 Thread tamouse mailing lists
On Thu, Mar 7, 2013 at 1:44 PM, Shlockdoc wrote: > Bump > > On Mar 5, 11:40 am, Shlockdoc wrote: >> We are a Digital Engagement shop based in the NYC area. We are looking for >> a two RoR developers to join our team of designers and developers >> preferably a SR and Jr, - salary commensurate wit

Re: [Rails] Save method behaviour changed?

2013-03-05 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 1:32 PM, byrnejb wrote: > I have this code in a working RoR-3.1 app: > > # save > # > # Override AR save method to catch DBMS specific errors > # such as uniqueness constraint violations > def save > super > rescue ActiveRecord::StatementInvalid => this_exc

Re: [Rails] searching model and has_one association

2013-03-05 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 3:48 PM, Michael Graff wrote: > Howdy. > > I have these models: > > User, field "mundane_name" > user has_one :instructor_profile (may or may not exist) > > instructor_profile, field "sca_name" > belongs_to :user > > I would like to craft a search on these fields, which is e

Re: [Rails] metroUI in Rails.

2013-03-04 Thread tamouse mailing lists
On Mon, Mar 4, 2013 at 12:10 AM, Salman Tariq Mirza wrote: > Has anyone tried to use metroUI with rails. Ive been following the > ruby.railstutorial.org and understood how twitter bootstrap was used. > Similarily I installed the metro-ui-rails gem, included it in my gemfile and > imported it in my

Re: [Rails] Re: RoR on IDE for Beginner

2013-02-28 Thread tamouse mailing lists
On Thu, Feb 28, 2013 at 4:33 AM, Colin Law wrote: > On 28 February 2013 10:28, Pardeep Dhingra wrote: >> Hey, >> >> According to me you should not use any IDE. Instead if you are ubuntu >> you can use gedit with its plugins for autocomplete and indentation >> etc... > > I like jEdit for the edito

Re: [Rails] where condition with array

2013-02-26 Thread tamouse mailing lists
On Tue, Feb 26, 2013 at 2:42 PM, Matt Jones wrote: > Plan.where('user_id NOT IN ?', [3,4,7]) Slight correction: Plan.where('user_id NOT IN (?)', [3,4,7]) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group an

  1   2   >