Re: [Rails] Re: Jquery code is not executed

2014-07-07 Thread André Orvalho
Hey Arup, what version of rails are you using? Also have you read this: http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html try to google your error might help you. all the best, Andre -- You received this message because you are subscribed to the Google Groups

[Rails] Difference between Cookies and Sessions

2014-07-07 Thread Praveen BK
Hello, Can anybody please define cookies and sessions and their differences in detail with reference to rails. Thank you, Praveen -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Can I do %=.% interpolation without getting a p tag?

2014-07-07 Thread Ronald Fischer
I have in my erb file something like this: %= simple_format(...) % The generated code is wrapped within p/p. In my case, I need the code be interpolated without this wrapping. Can this be done? Ronald -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] Can I do %=.% interpolation without getting a p tag?

2014-07-07 Thread James Turley
This is an effect of using the simple_format method: http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-simple_format Returns text transformed into HTML http://api.rubyonrails.org/classes/HTML.html using simple formatting rules. Two or more consecutive newlines(\n\n)

[Rails] Re: Can I do %=.% interpolation without getting a p tag?

2014-07-07 Thread Ronald Fischer
If you just want to print out the bare text, you can just put that in your erb tag: %= my_variable % This didn't work either, because the value of my_variable contains simple quotes, and these had been replaced by an HTML entity denotation (in this case, it is #39;). That's why I thought I

Re: [Rails] Re: Can I do %=.% interpolation without getting a p tag?

2014-07-07 Thread James Turley
if you change js_unhide_idstrings.join(',') to js_unhide_idstrings.join(',').html_safe that should decode the entities. On Mon, Jul 7, 2014 at 10:50 AM, Ronald Fischer li...@ruby-forum.com wrote: If you just want to print out the bare text, you can just put that in your erb tag: %=

[Rails] Re: Can I do %=.% interpolation without getting a p tag?

2014-07-07 Thread Ronald Fischer
Thanks a lot, this is the solution I was looking for! -- Posted via http://www.ruby-forum.com/. -- 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

[Rails] Awesome Ruby

2014-07-07 Thread Marc Anguera Insa
I started to build collection of awesome Ruby libraries, tools, frameworks and software (inspired by awesome-php https://github.com/ziadoz/awesome-php, awesome-python https://github.com/vinta/awesome-python and frontend-dev-bookmarks https://github.com/dypsilon/frontend-dev-bookmarks). Do

[Rails] Application trace in the error page for a Rails engine

2014-07-07 Thread David Morales
I'm developing a Rails engine, and when debugging an error through the default Rails error page, I find that the Application trace shows nothing, while Framework trace and Full trace show the trace. Is this intended for an engine? -- You received this message because you are subscribed to the

Re: [Rails] Application trace in the error page for a Rails engine

2014-07-07 Thread Andy Jeffries
Yes, Engines are considered part of the framework level rather than the application level. If I developed an engine and released it as a gem, you wouldn't want my lines littering your application stack trace, right? Cheers, Andy *Andy Jeffries* Ruby on Rails, RubyMotion, jQuery Developer

[Rails] Changing display text of submit button without changing value passed to controller

2014-07-07 Thread Ronald Fischer
Please have a look at this form: %= form_for @data, url: data_path do |f| % ... %= f.submit(accept, name:judgement) % %= f.submit(reject, name:judgement) % % end % These buttons display accept and reject. Clicking on the first button would pass judgement = accept to the

Re: [Rails] Difference between Cookies and Sessions

2014-07-07 Thread Andy Jeffries
Cookies are stored key/value pairs (with other attributes such as expiry, domain, path and ssl requirements) in the client's browser. The specification for them is in the HTTP specification and these can (generally) be read by backend languages such as Rails or frontend technologies such as

Re: [Rails] Re: What is the actual use of ActiveRecord::SpawnMethods#except?

2014-07-07 Thread Matt Jones
On Sunday, 6 July 2014 13:29:15 UTC-5, Arup Rakshit wrote: `except` is used when you want to use part of a relation but not necessarily the whole thing. It's not always useful in application code, but when dealing with generic relations it can be really useful:

Re: [Rails] Changing display text of submit button without changing value passed to controller

2014-07-07 Thread Walter Lee Davis
On Jul 7, 2014, at 9:15 AM, Ronald Fischer wrote: Please have a look at this form: %= form_for @data, url: data_path do |f| % ... %= f.submit(accept, name:judgement) % %= f.submit(reject, name:judgement) % % end % These buttons display accept and reject. Clicking on the first

[Rails] Cant install rails.

2014-07-07 Thread Anders Lund
I get this when i type gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: Operation timed out - connect(2) for api.rubygems.org port 443 (https://api.rubygems.org/api/v1/dependencies?gems=rake) i have gem installed, rails and sqlite3 all

Re: [Rails] Cant install rails.

2014-07-07 Thread Norbert Melzer
This Message tells that you are not connected to the internet or at least you can't reach api.rubygems.org due to firewall restrictions or missing proxy settings. Please make sure you can connect to api.rubygems.org:80 via telnet and that you can ping it. If that doesn't help please provide more

[Rails] Re: Using Polymer Web Components and Rails

2014-07-07 Thread Alex Chaplinsky
Actually there is a ruby gem, which allows you to create Web Components in RoR application using Polymer https://github.com/alchapone/polymer-rails -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: Difference between Cookies and Sessions

2014-07-07 Thread Robert Walker
Praveen BK wrote in post #1151760: Hello, Can anybody please define cookies and sessions and their differences in detail with reference to rails. What may be confusing you, that I've not seen mentioned yet, is that session identifiers are stored in cookies. Let me explain by looking at

[Rails] Upstart script exported by Foreman not working properly, respawning too fast

2014-07-07 Thread Ricardo do Valle
The only error I could find out was looking at dmesg [ 603.598951] init: thx4-web-1 main process ended, respawning [ 603.607935] init: thx4-web-1 main process (3901) terminated with status 127 [ 603.607988] init: thx4-web-1 main process ended, respawning [ 603.616866] init: thx4-web-1 main

[Rails] how can get data from localhost:3000 in ruby on rails to heroku

2014-07-07 Thread Duong vong veasna
In my local machine i had input some data into database using SQLite3 .when i deployed it to heroku why i can't get data that i input? i'm do like this -in Gemfile group :development do gem 'sqlite3' end group :production do gem 'pg' gem 'rails_12factor' end -bundle install -heroku login

[Rails] Re: Cant install rails.

2014-07-07 Thread Duong vong veasna
hi what os did you use. veasna On Monday, July 7, 2014 11:42:55 PM UTC+7, Anders Lund wrote: I get this when i type gem install rails ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: Operation timed out - connect(2) for api.rubygems.org port 443 (

Re: [Rails] how can get data from localhost:3000 in ruby on rails to heroku

2014-07-07 Thread Alexandre Calvão
I don't think you understand the concept of databases very well. Look on google how to use the seeds.rb file. Maybe that will help === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi]