You can give a try to rubocop. https://github.com/bbatsov/rubocop
W dniu środa, 31 grudnia 2014 16:45:57 UTC+1 użytkownik Mehmet Cetin napisał:
Hello guys,I have been coding rails apps for the last 12 months. I realised that when I skim the code of experienced RoR developers or Ruby Gems in Github, my coding style and way of thinking is being affected positively. I just want to improve my skills and write better, more clean code in Ruby & RoR. Can you tell me some well-written (according to you ofc), recently developed gems or repos you remember which I can skim over.Have a nice year btw!Thanks,
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dc06c91d-67cd-4e4c-852d-93845a900fba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Dec 31, 2014, at 10:45 AM, Mehmet Cetin <mcetin.cm@gmail.com> wrote:Hello guys,I have been coding rails apps for the last 12 months. I realised that when I skim the code of experienced RoR developers or Ruby Gems in Github, my coding style and way of thinking is being affected positively. I just want to improve my skills and write better, more clean code in Ruby & RoR. Can you tell me some well-written (according to you ofc), recently developed gems or repos you remember which I can skim over.Have a nice year btw!Thanks,--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4c118f6d-cf4d-4db6-972f-2655c75311ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wednesday, December 31, 2014 5:53:46 PM UTC+2, Mehmet Cetin wrote:
This document (getting started RoR) has many answers to your possible questions. It is best to start with http://guides.rubyonrails.org/testing.html and railscasts.com - a little outdated but has many great examples there.Start with those, rest will follow ;)
On Friday, December 26, 2014 2:50:31 PM UTC+2, Prabu Rangki wrote:Hi all, need some advise.
I'm still new on RoR, I'm about to create a Web app that monitors energy consumption such as, electricity, water and waste.
User can input the datas manually and later on they can view the usages in a day, week, year and by selecting particular dates.
Where should I start and what part should I start. I'm still stuck on designing the database. But I already play around with chartkick a little bit.
Thx
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/68aa2298-2010-4a51-82d9-f55486cc5fdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Friday, December 26, 2014 2:50:31 PM UTC+2, Prabu Rangki wrote:
Hi all, need some advise.
I'm still new on RoR, I'm about to create a Web app that monitors energy consumption such as, electricity, water and waste.
User can input the datas manually and later on they can view the usages in a day, week, year and by selecting particular dates.
Where should I start and what part should I start. I'm still stuck on designing the database. But I already play around with chartkick a little bit.
Thx
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/afe8d4b2-ef61-4c7f-be02-e0727a3a89da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4c118f6d-cf4d-4db6-972f-2655c75311ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Problem solved: it's because the columns sociable_id and sociable_type
weren't defined in the schema.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/255a3485dc691ea69579793afa63cbda%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
I'm way behind the times.
I've finally got the go ahead from corporate to start an upgrade of
our ROR application from 1.2.6.
I'm first upgrading to Rails 2.2.3 which has not been too bad but I
have a question around http_only and secure session cookie using
:active_record_store.
I understand that :session_http_only by default is set to TRUE but it
appears to be ignored while :session_secure is FALSE.
I'm using this at the bottom of environment.rb to turn on the secure
flag.
ActionController::Base.session_options[:session_secure] = true
When secure is turned off (FALSE) I CAN access the session cookie via
javascript in the browser.
When secure is turned on (TRUE) I CANNOT access the session cookie via
javascript.
This does not apply to other cookies - just the session cookie.
<P>Was this a known issue?
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/62d3686c49062de13e9393e71cc7fa66%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Well, I tried on my Unix box running Ruby 2.1.1 and 1.9.3 through RVM
and I woke on both platforms. I also ran the specs provided with the
gem after I copied them to a woking folder and I got no errors. But of
course we have to wonder, what is the nature of this project?
Anyone care to comment on their experience?
Star
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/60705ffbf8a55835228c9827d604f4fb%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
On Mon, Dec 29, 2014 at 3:38 AM, Nelson André <lists@ruby-forum.com> wrote:
> Is RoR suited to pickup the existing database and data and just build
> the CRUD logic and web layout on top of it?
You have several challenges here:
1) being new to Rails
2) using a db that probably doesn't conform to Rails conventions
3) running on Windows
Any one of those can be overcome, but all three together are a steep
hill to climb :-)
Why not just try a simple PoC implementation? All you have to lose
is a couple of hours of time.
Alternatively, have someone experienced evaluate the specifics of
your situation and make an informed recommendation.
Good luck!
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yA6K1gY7yhPhdNYt_QGOBrrBUv13TxKy146HJgJumiMAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Tue, Dec 30, 2014 at 3:50 AM, Diego Dillenburg Bueno
<diegodillenburg@gmail.com> wrote:
>
> And also I'm using a mysql database, with the mysql gem, and I have seen some records like:
> <City id: 5560, name: "Xambio\xC3\xA1", capital: false, state_id: 27,..>
You need to make sure your database (or at least the tables you're
using for your app) is set up with the appropriate "character set" and
"collation" for the language(s) you're using.
google: mysql collation portugues brasil
for some specific references; also read the MySQL docs for the DB
version you're running, e.g.
http://dev.mysql.com/doc/refman/5.5/en/charset-charsets.html
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yC4%2Bha1CmCMcE4bH-Bnp6w3Y2oCrUYg_weLezH7W1pemA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Tue, Dec 30, 2014 at 2:52 AM, Vlad Panainte <vlad.panainte@gmail.com> wrote:
> def foo_params
> params.require(:foo).permit(:value,:rvalue)
> end
>
> where rvalue is an array. I've tried :rvalue=>[] but no luck
> <%= builder.text_field "rvalue" , class: "uk-width-1-1" %>
? Your "rvalue" param is going to be a string.
I don't understand why you expect it to be an array.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCtALPXBF1HoP2JDRLyxfHr40hfKvu3PigTpK3qWSvVPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On 30 December 2014 at 13:33, Ankur Kumar <specialankur@gmail.com> wrote:
>
> Thanks Colin for your reply. Can you please let me know how can user_id be
> included in caching key string? I have following implementation of caching
> as of now.
>
> app/views/employee/index.html.erb
>
> <% cache "employee_list "do %>
Something like
cache "employee_list #{current_user.id}" do
so the user id is included in cache key. Similarly for expire.
Colin
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLscwWrmOiyt6qTAyPzNQKE_LM%2Bqcad5Tu7jNnHrzXswcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
<% cache "employee_list "do %>
List of all employees:
<% Employee.all.each do |e| %>
<%= link_to e.name, employee_url(e) %>
<% end %>
<% end %>
observe Employee
def sweep(employee)
expire_fragment("
employee
_list")end
alias_method :after_create, :sweep
alias_method :after_update, :sweep
alias_method :after_destroy,:sweep
--
On Tue, Dec 23, 2014 at 7:19 PM, Colin Law <clanlaw@gmail.com> wrote:
On 23 December 2014 at 13:42, Ankur Kumar <specialankur@gmail.com> wrote:
>
> Hi,
>
> My app has devise authentication for every user. I integrated fragment
> caching for one of my views which is accessible only on sign-in.
>
> The cached page saved by one user is accessible by another user. How can I
> implement a unique key based caching so that cached pages are unique for
> every user?
Include the user id in the key string.
Colin
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvnok5OsKHzcD2go8FhDtp7wpzLR%3DUiRj-V1P9nHdKTwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALSL1eO79u_7T%2BkA-_i2mRosRA97KANKQO5-JxNFvMCqX-uEiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Tuesday, December 30, 2014 10:52:18 AM UTC, Vlad Panainte wrote:
Hi guys,I need some help with updating an array using rails view form .In controllerdef foo_paramsparams.require(:foo).permit(:value,:rvalue) endwhere rvalue is an array. I've tried :rvalue=>[] but no luck
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/64723e24-f987-44c4-b017-ee7678cc80e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAOHSkmGbrhfwRgtr_c2gxU%3DnK-PnOwzgMGxLDpTPaQRpVSTGcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d3bc9f1c-9ede-4daf-8ee6-d4c095dcd69c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8cbcbf2a-a154-4fde-a5be-248c9526d9fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you want to have separate models for MySQL and Neo4j, look into the
Neo4j gem, https://github.com/neo4jrb/neo4j. It provides
ActiveRecord-like modules that let you build Neo4j models and work with
the database easily. It has a great community and development on the gem
is very active.
If you want to make it easy for ActiveRecord models to pull from Neo4j,
you can look into writing methods in your AR models that pull from Neo
using Neo4j-core, https://github.com/neo4jrb/neo4j-core. It requires a
lot more knowledge of the database, though, it's really just an API
wrapper with some helper methods to make certain basic tasks easier.
You can post on StackOverflow, open issues, or email any of the
maintainers if you need a hand.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/21bcb76763356e50a09539cdc0e6011f%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c748407d-c522-49f6-966e-747fdf1cdc81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I believe that's called "free as in beer" not "free as in speech"
Scott is absolutely correct — in Galoob v Nintendo (1992) the supreme court established that users have a right to modify copyrighted works for their own use (but not necessarily re-distribtue them).
This software appears to have no license, which means the author (Mr. Henry) is indeed allowed to seek copyright protection. As I said above, copyright protection does not mean that it is against the law to de-compile the source.
I would advise Mr. Henry to seek the advice of a IP lawyer if he wants to properly protect his software. As well, it's probably a good idea to include a license.
As a programmer, I would never put an executable I couldn't see the source of into my app.
-Jason
> On Dec 29, 2014, at 4:02 PM, Scott Ribe <scott_ribe@elevated-dev.com> wrote:
>
> On Dec 29, 2014, at 12:44 PM, Lou Henry <lists@ruby-forum.com> wrote:
>>
>> If you feel the need to decompile the code even though
>> WHAT is contained in it is not worth the trouble you are hereby formally
>> instructed to: Cease and Desist.
>
> Bullshit.
>
>> Jackbox and the code in it are
>> copyrighted.
>
> You seem to be a bit unclear on what exactly that means...
>
> --
> Scott Ribe
> scott_ribe@elevated-dev.com
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9AE0B95D-1CBC-4B96-8F4B-EB05EC0779CB%40elevated-dev.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/08B093B9-F600-4C17-A3ED-00FEC631B5CB%40datatravels.com.
For more options, visit https://groups.google.com/d/optout.
Sounds like you are looking for
some_scope.unscope(:where)
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/18fc65f3-251a-4542-a4c3-5fa4b0eb079b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Dec 29, 2014, at 12:44 PM, Lou Henry <lists@ruby-forum.com> wrote:
>
> If you feel the need to decompile the code even though
> WHAT is contained in it is not worth the trouble you are hereby formally
> instructed to: Cease and Desist.
Bullshit.
> Jackbox and the code in it are
> copyrighted.
You seem to be a bit unclear on what exactly that means...
--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9AE0B95D-1CBC-4B96-8F4B-EB05EC0779CB%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.
Hi ,
I am getting into the below error while running bundle from bamboo
server.
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
build 29-Dec-2014 15:13:05
build 29-Dec-2014 15:13:05 /usr/local/bin/ruby extconf.rb
build 29-Dec-2014 15:13:05 checking for load library path...
build 29-Dec-2014 15:13:05 LD_LIBRARY_PATH...
build 29-Dec-2014 15:13:05 checking
/usr/java/jdk1.6.0_30/jre/lib/amd64/server... no
build 29-Dec-2014 15:13:05 checking
/usr/java/jdk1.6.0_30/jre/lib/amd64... no
build 29-Dec-2014 15:13:05 checking
/usr/java/jdk1.6.0_30/jre/../lib/amd64... no
build 29-Dec-2014 15:13:05 checking ld.so.conf... no
build 29-Dec-2014 15:13:05 checking for cc... ok
build 29-Dec-2014 15:13:05 checking for gcc... yes
build 29-Dec-2014 15:13:05 checking for LP64... yes
build 29-Dec-2014 15:13:05 checking for sys/types.h... yes
build 29-Dec-2014 15:13:05 checking for ruby header... ok
build 29-Dec-2014 15:13:05 *** extconf.rb failed ***
build 29-Dec-2014 15:13:05 Could not create Makefile due to some
reason, probably lack of necessary
build 29-Dec-2014 15:13:05 libraries and/or headers. Check the
mkmf.log file for more details. You may
build 29-Dec-2014 15:13:05 need configuration options.
build 29-Dec-2014 15:13:05
build 29-Dec-2014 15:13:05 Provided configuration options:
build 29-Dec-2014 15:13:05 --with-opt-dir
build 29-Dec-2014 15:13:05 --without-opt-dir
build 29-Dec-2014 15:13:05 --with-opt-include
build 29-Dec-2014 15:13:05 --without-opt-include=${opt-dir}/include
build 29-Dec-2014 15:13:05 --with-opt-lib
build 29-Dec-2014 15:13:05 --without-opt-lib=${opt-dir}/lib
build 29-Dec-2014 15:13:05 --with-make-prog
build 29-Dec-2014 15:13:05 --without-make-prog
build 29-Dec-2014 15:13:05 --srcdir=.
build 29-Dec-2014 15:13:05 --curdir
build 29-Dec-2014 15:13:05 --ruby=/usr/local/bin/ruby
build 29-Dec-2014 15:13:05 --with-instant-client
build 29-Dec-2014 15:13:05 --without-instant-client
build 29-Dec-2014 15:13:05
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/oraconf.rb:891:in
`get_home': RuntimeError (RuntimeError)
build 29-Dec-2014 15:13:05 from
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/oraconf.rb:707:in
`initialize'
build 29-Dec-2014 15:13:05 from
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/oraconf.rb:320:in
`new'
build 29-Dec-2014 15:13:05 from
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/oraconf.rb:320:in
`get'
build 29-Dec-2014 15:13:05 from extconf.rb:18:in `<main>'
build 29-Dec-2014 15:13:05
---------------------------------------------------
build 29-Dec-2014 15:13:05 Error Message:
build 29-Dec-2014 15:13:05 Set the environment variable ORACLE_HOME
if Oracle Full Client.
build 29-Dec-2014 15:13:05 Append the path of Oracle client
libraries to LD_LIBRARY_PATH if Oracle Instant Client.
build 29-Dec-2014 15:13:05
build 29-Dec-2014 15:13:05 Backtrace:
build 29-Dec-2014 15:13:05
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/oraconf.rb:891:in
`get_home'
build 29-Dec-2014 15:13:05
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/oraconf.rb:707:in
`initialize'
build 29-Dec-2014 15:13:05
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/oraconf.rb:320:in
`new'
build 29-Dec-2014 15:13:05
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/oraconf.rb:320:in
`get'
build 29-Dec-2014 15:13:05 extconf.rb:18:in `<main>'
build 29-Dec-2014 15:13:05
---------------------------------------------------
build 29-Dec-2014 15:13:05 See:
build 29-Dec-2014 15:13:05 *
http://rubydoc.info/gems/ruby-oci8/file/docs/install-full-client.md for
Oracle full client
build 29-Dec-2014 15:13:05 *
http://rubydoc.info/gems/ruby-oci8/file/docs/install-instant-client.md
for Oracle instant client
build 29-Dec-2014 15:13:05 *
http://ruby-oci8.rubyforge.org/en/file.report-installation-issue.html to
report an issue.
build 29-Dec-2014 15:13:05
build 29-Dec-2014 15:13:05
build 29-Dec-2014 15:13:05
build 29-Dec-2014 15:13:05 Gem files will remain installed in
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7 for inspection.
build 29-Dec-2014 15:13:05 Results logged to
/usr/local/lib/ruby/gems/2.0.0/gems/ruby-oci8-2.1.7/ext/oci8/gem_make.out
build 29-Dec-2014 15:13:05 An error occurred while installing
ruby-oci8 (2.1.7), and Bundler cannot
build 29-Dec-2014 15:13:05 continue.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a39ded7f60488c3a140f75412e47d7dd%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
ANNOUNCING a new release of Jackbox.
Jackbox toys with the ideas of closures as modules. In it you'll find a
series of new takes on ruby that are sure to spike you interest. With
it we have come up with a solution to the decorators handicap in ruby
and introduced some new constructs for code injection.
Please feel free to use it free of charge and to send us your comments
or inquiries. Available from RubyGems.org for Linux, Mac, and Windows.
Just run: gem install jackbox.
More info here: https://github.com/LouHenryAlvarez/jackbox
CHANGES: Made ffi a dependency instead of part of the gem. Added some
additional specs. In particular, added specs for the #with construct
and the #lets construct for the disbelievers. To execute all the specs:
you need to be inside the gem directory where ever this maybe on your
system and run rspec from the gem directory itself.
Thank you.
IMPORTANT NOTICE: If you feel the need to decompile the code even though
WHAT is contained in it is not worth the trouble you are hereby formally
instructed to: Cease and Desist. Jackbox and the code in it are
copyrighted. If you encounter bugs, you don't need to debug them. We
will debug them for you. Just send us your stack trace and an
explanation of the problem to the address on the GitHub page or on the
gem itself. We will do our most to provide you with outstanding
customer service.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cb9e56b45dbfed27142f8f0538a91837%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
I'm prototyping a large application which will eventually have multiple open connections to MySQL and Neo4j data persist stores (aka databases). I would also like to maintain the existing development/test/prod switch behavior.
How can I configure this, or where would I start to patch?
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/166b5f31-43ea-4ac9-b693-a0c9ecee98f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Dec 29, 2014, at 4:30 AM, Frederick Cheung <frederick.cheung@gmail.com> wrote:
On Monday, December 29, 2014 1:16:40 AM UTC, Josh wrote:I'd like to remove all existing constraints from an ActiveRecord::Relation and leave the rest in-tact.
I am not looking for #unscoped since I would like to keep any joins/order clauses around.
Additionally, I would like to re-use the constraints that were removed in another query, so the ability to call #to_sql on them would be a very nice bonus.
Sounds like you are looking forsome_scope.unscope(:where)FredThis is the best I've been able to hack together:
Order.where(id: 1).where(id: 2).arel.constraints[0].to_sql
=> "`orders`.`id` = 1 AND `orders`.`id` = 2"
...but that just seems wrong. As far as I can tell #constraints always has one item in it, but I don't know that will always be true.
Thanks!
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1804d715-ebbc-48c9-892b-d73f72b6f1f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
http://goo.gl/dFdDc8
Course Highlights:
1) The Startup's Guide To Web Development With Ruby On Rails.
2) Ruby On Rails For Beginners.
3) Learn Ruby On Rails From Scratch.
4) Advanced Ruby Programming: 10 Steps To Mastery.
5) Create & Deploy A Web App In 3 Hours.
6) Become a Heroku Rails Ninja
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/64a02286-ccc7-4f42-afd2-98e897a84901%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 29 December 2014 at 14:49, Etienne Brunet <etiennebrunet@gmail.com> wrote:
> Ok thank you. I found the error, It is weird because all test where failing
> for 1 syntaxt error...
A syntax error is detected when the code is loaded and the whole app
is loaded for any test.
Colin
>
>
> On Sunday, December 28, 2014 5:09:12 PM UTC-5, Etienne Brunet wrote:
>>
>> Hi,
>>
>> I'm following the https://www.railstutorial.org
>>
>> I'm now at chapter 10. Since yesterday all my 42 tests are RED and reports
>> the same error :
>>
>>
>> ERROR["test_should_get_new", UsersControllerTest, 0.274138782]
>> test_should_get_new#UsersControllerTest (0.27s)
>> SyntaxError: SyntaxError: (erb):36: syntax error, unexpected
>> tLABEL
>> activated: true
>> ^
>> (erb):37: syntax error, unexpected ':', expecting ')'
>> activated_at: <%= Time.zone.now ).to_s); _erbout.concat "\n"
>> ^
>> (erb):37: unterminated string meets end of file
>>
>>
>>
>> The app is working great.
>>
>> I'm on cloud9.
>>
>> I have restarted the server etc... same errors. Everything was working
>> great since yesterday.
>>
>> Thx
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/17fe74d8-448c-4092-ba47-57d0d2cc3c65%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsRjw-aphO9XJiGPktG4av5m6n6%2BumGmo8pVrOgfYD5PQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Find my answer below:
http://stackoverflow.com/questions/27620228/ruby-2-1-with-erubis-template-engine/27690911
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/aa39d2cd31dd5685856aa9dd07229c72%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
On Sunday, December 28, 2014 5:09:12 PM UTC-5, Etienne Brunet wrote:
Hi,I'm following the https://www.railstutorial.org I'm now at chapter 10. Since yesterday all my 42 tests are RED and reports the same error :ERROR["test_should_get_new", UsersControllerTest, 0.274138782]test_should_get_new#UsersControllerTest (0.27s) SyntaxError: SyntaxError: (erb):36: syntax error, unexpected tLABELactivated: true^(erb):37: syntax error, unexpected ':', expecting ')'activated_at: <%= Time.zone.now ).to_s); _erbout.concat "\n"^(erb):37: unterminated string meets end of fileThe app is working great.I'm on cloud9.I have restarted the server etc... same errors. Everything was working great since yesterday.Thx
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/17fe74d8-448c-4092-ba47-57d0d2cc3c65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Dec 28, 2014, at 8:16 PM, Josh <josh.m.sharpe@gmail.com> wrote:I'd like to remove all existing constraints from an ActiveRecord::Relation and leave the rest in-tact.
I am not looking for #unscoped since I would like to keep any joins/order clauses around.
Additionally, I would like to re-use the constraints that were removed in another query, so the ability to call #to_sql on them would be a very nice bonus.
This is the best I've been able to hack together:
Order.where(id: 1).where(id: 2).arel.constraints[0].to_sql
=> "`orders`.`id` = 1 AND `orders`.`id` = 2"
...but that just seems wrong. As far as I can tell #constraints always has one item in it, but I don't know that will always be true.
Thanks!
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bbc2f6bd-8713-472d-b184-e737a83d0929%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello all,
I'm rather new to RoR and I'm checking if RoR is the way to go in my
scenario.
I've got a Client/Server application built on top of SQL Server with
some Win32 screens.
We would want to build a Web version of our application but keeping the
database because we use a code generation tool to build all the app and
we want to keep using it to generate the backend.
Is RoR suited to pickup the existing database and data and just build
the CRUD logic and web layout on top of it?
Thanks.
Nelson
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8af7ff67a754d63fdca276b9377119c3%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
On Monday, December 29, 2014 1:16:40 AM UTC, Josh wrote:
I'd like to remove all existing constraints from an ActiveRecord::Relation and leave the rest in-tact.
I am not looking for #unscoped since I would like to keep any joins/order clauses around.
Additionally, I would like to re-use the constraints that were removed in another query, so the ability to call #to_sql on them would be a very nice bonus.
This is the best I've been able to hack together:
Order.where(id: 1).where(id: 2).arel.constraints[0].to_sql
=> "`orders`.`id` = 1 AND `orders`.`id` = 2"
...but that just seems wrong. As far as I can tell #constraints always has one item in it, but I don't know that will always be true.
Thanks!
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1804d715-ebbc-48c9-892b-d73f72b6f1f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 28 December 2014 at 22:09, Etienne Brunet <etiennebrunet@gmail.com> wrote:
> Hi,
>
> I'm following the https://www.railstutorial.org
>
> I'm now at chapter 10. Since yesterday all my 42 tests are RED and reports
> the same error :
>
>
> ERROR["test_should_get_new", UsersControllerTest, 0.274138782]
> test_should_get_new#UsersControllerTest (0.27s)
> SyntaxError: SyntaxError: (erb):36: syntax error, unexpected tLABEL
> activated: true
The error says that you have got a syntax on line 36, but you have not
shown us the code which has the error. Show us that line (from
whichever file it says has the error) along with a few lines before it
as sometimes the error is actually on a preceding line, but it is not
obvious to Ruby that there is an error until it reads the next
line(s).
Which version of ruby are you using (ruby -v, run from the root folder
of the application). I assume you are running the test from that
folder.
> ^
> (erb):37: syntax error, unexpected ':', expecting ')'
> activated_at: <%= Time.zone.now ).to_s); _erbout.concat "\n"
> ^
> (erb):37: unterminated string meets end of file
>
>
>
> The app is working great.
>
> I'm on cloud9.
>
> I have restarted the server etc... same errors. Everything was working great
> since yesterday.
When running tests it is not necessary to have the server running.
Colin
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuXHV9v7FhREZXd%2BCROjSxpYf39FGd%2Brbxp1z36e-Gifg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
I'd like to remove all existing constraints from an ActiveRecord::Relation and leave the rest in-tact.
I am not looking for #unscoped since I would like to keep any joins/order clauses around.
Additionally, I would like to re-use the constraints that were removed in another query, so the ability to call #to_sql on them would be a very nice bonus.
This is the best I've been able to hack together:
Order.where(id: 1).where(id: 2).arel.constraints[0].to_sql
=> "`orders`.`id` = 1 AND `orders`.`id` = 2"
...but that just seems wrong. As far as I can tell #constraints always has one item in it, but I don't know that will always be true.
Thanks!
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bbc2f6bd-8713-472d-b184-e737a83d0929%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.