Re: [Rails] Re: RSpec vs. Cucumber

2013-08-23 Thread Ilya Igonkin
On Sat, Aug 24, 2013 at 2:58 AM, Rekha Benada wrote: > Rspec is a popular framework for unit testing and Cucumber is used for > integration testing and behavior driven development > It's pretty strange to hear since RSpec description is "BDD for Ruby". More than that, recent versions of RSpec for

Re: [Rails] Images with fingerprinting

2013-08-23 Thread Tamara Temple
On Aug 22, 2013, at 5:29 PM, Nick Khamis 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); > $('#reg

[Rails] Re: RSpec vs. Cucumber

2013-08-23 Thread Rekha Benada
Rspec is a popular framework for unit testing and Cucumber is used for integration testing and behavior driven development Unit tests with rspec confirm that small, discrete portion continue working as developers add features. Integration tests built with cucumber determine wether the applicatio

[Rails] Re: syntax error, unexpected tRPAREN raised in server log

2013-08-23 Thread ianchoi
This is my code, user controller 42: @user = User.with_clients.with_projects.find(doorkeeper_token.resource_owner_id) active support code that error out. def define_callbacks(kind, object) #:nodoc: name = _callback_runner_name(kind) unless object.respond_to?(name, true) str = object.send("

Re: [Rails] No route matches [POST]

2013-08-23 Thread Rita Ferreira
Hi tamouse, I tried it with button_to with the 'tag' :method => :get and I got no error! Then I decided to use link_to and I got success too! Thank you ver much :) Sexta-feira, 23 de Agosto de 2013 19:17:40 UTC+1, tamouse escreveu: > > > On Aug 23, 2013, at 6:25 AM, Rita Ferreira > > > wrote

[Rails] Re: No route matches [POST]

2013-08-23 Thread Rita Ferreira
Hi Fred, Thanks a lot, it worked :) Sexta-feira, 23 de Agosto de 2013 18:48:28 UTC+1, Frederick Cheung escreveu: > > > > On Friday, August 23, 2013 12:25:29 PM UTC+1, Rita Ferreira wrote: > on the routes.rb I have: >> >> Clinica::Application.routes.draw do >> >> resources :clinica >> >> resou

[Rails] post rendering templates

2013-08-23 Thread Joe Le Brech
I'm looking to add text before the output of each template and partial to show the following: /path/to/erb/file or document.write ... if it's a javascript file. If I'm using tilt I also use templates for those notices (for coffeescript etc..) i've found a gem for rails 2 that did that, but i

Re: [Rails] No route matches [POST]

2013-08-23 Thread Tamara Temple
On Aug 23, 2013, at 6:25 AM, Rita Ferreira 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 default of my aplica

Re: [Rails] Impressão

2013-08-23 Thread Fernando Almeida
Lembro de ter visto há algum tempo algo sobre o uso de controle ActiveX para isso, mas isso logicamente só se aplica para usuários com Windows + Internet Explorer. Achei esses dois links aqui no meu Delicious, dá uma olhada se tem alguma coisa útil para você: http://forum.rubyonbr.org/forums/1/to

Re: [Rails] Impressão

2013-08-23 Thread Edivan Camargo
Posso estar falando bobagem, mas acredito que tu consiga fazer isso somente através de uma applet java :/ 2013/8/23 Alcelyo Roberto > Boa tarde pessoal, > Queria saber se existe alguma forma de enviar uma impressão direta > para a impressora padrão sem abrir o gerenciador de impressão do na

[Rails] Re: No route matches [POST]

2013-08-23 Thread Frederick Cheung
On Friday, August 23, 2013 12:25:29 PM UTC+1, Rita Ferreira wrote: on the routes.rb I have: > > Clinica::Application.routes.draw do > > resources :clinica > > resources :consultas > > > on /views/consultas/new.html.erb I have a form, if I write the URL " > http://localhost:3000/consultas/new"

[Rails] [JOBS] Looking for a freelance web developer

2013-08-23 Thread Kévin Etienne
We are seeking an assistant software developer to support our development Experience of Ruby and Rails, PostgreSQL, coffeescript, jquery would be be preferential and Java for Android would be beneficial. We will consider candidates without Ruby on Rails experience, but must have a willingness to

[Rails] No route matches [POST]

2013-08-23 Thread Rita Ferreira
Hi, I'm new in RoR, I need some help in the following situation: I have 2 controllers, clinica and consultas. Clinica is my default controller. On /views/clinica, I have the index.html.erb default of my aplication, and I have there the command: <%= button_to "Read More", new_consulta_path, :cla

[Rails] Any file upload and strong parameters examples

2013-08-23 Thread arttour696
Does anyone have any examples of definitions for strong parameters usage with file uploads? -- 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-t

[Rails] Impressão

2013-08-23 Thread Alcelyo Roberto
Boa tarde pessoal, Queria saber se existe alguma forma de enviar uma impressão direta para a impressora padrão sem abrir o gerenciador de impressão do navegador ? -- Alcelyo R Mariz Bacharel em Sistemas de Informação -- You received this message because you are subscribed to the Google Gr

[Rails] Re: syntax error, unexpected tRPAREN raised in server log

2013-08-23 Thread Matt Jones
On Wednesday, 21 August 2013 16:51:11 UTC-4, ian...@jugnoo.com wrote: > > In my server log, I am seeing this error message that is raised in > activesupport. > > 2013-08-12T23:06:08.932580+00:00 app[web.2]: SyntaxError > (/app/vendor/bundle/jruby/1.9/gems/activesupport-4.0.0/lib/active_support

Re: [Rails] RSpec vs. Cucumber

2013-08-23 Thread Dave Aronson
On Fri, Aug 23, 2013 at 4:15 AM, Ilya Igonkin wrote: > using Cucumber is counterproductive as writing plain English > text and then parsing it with regular expressions is somewhat > overkill and error prone. I think anyone should use Cucumber > only if they have a strong reason to. Agreed! I us

[Rails] app: rake task namespacing for new engines.

2013-08-23 Thread Yuriy Trofimenko
At the moment when you create a new engine, its rakefile has such lines: APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' It loads only selected db tasks under the global rake namespace and makes all the engine's rake tasks available under the ap

Re: [Rails] RSpec vs. Cucumber

2013-08-23 Thread Ilya Igonkin
I know a lot people may disagree, but I believe that using Cucumber is counterproductive as writing plain English text and then parsing it with regular expressions is somewhat overkill and error prone. I think anyone should use Cucumber only if they have a strong reason to. And some well known Rail

[Rails] Re: Regarding the design of ActiveSupport::TimeZone

2013-08-23 Thread Frederick Cheung
On Thursday, August 22, 2013 12:59:02 AM UTC+1, Matt Johnson wrote: > > > Ok - but who determined which of the 578 zones are "meaningful"? By what > criteria? And by what review process do newly established zones get > determined if they make the cut or not? Is there a recommended strategy >