Re: [Rails] Re: Can't say "Hello World"

2016-12-26 Thread Ad Rienks
Which is your development environment? Operation System? The railstutorial.org comes with a link to Cloud 9 (c9.io) In the provided online environment (which is free for personal use) everything can be set up to run Rails, the way you need. Ad Op zondag 25 december 2016 14:04:24 UTC+1 schreef

[Rails] Re: Can't say "Hello World"

2016-12-25 Thread Ad Rienks
Sergey, You created a controller and action, but did you create a view? Without a view you can't see anything. I guess you see the Rails default screen. Learn Rails through this free tutorial: https://www.railstutorial.org/book. The first few chapters lead you to create a "Hello World" example.

[Rails] Re: I have issue in Rails Server

2016-12-04 Thread Ad Rienks
To add to Colin's advices: - You can have an IDE online, in the cloud, with everything you need by using C9.io. Register for free, create a Rails environment, and all you need is set up for you! Ad Op vrijdag 2 december 2016 19:26:56 UTC+1 schreef Furqan Ahmad: > > >

[Rails] Re: How to Get Started with Ruby on Rails?

2016-08-26 Thread Ad Rienks
Not long ago I had the same question. What I recommend is Michael Hartl´s tutorial: https://www.railstutorial.org/ You get a Cloud 9 development environment with it, and it's all for free! Op donderdag 25 augustus 2016 18:46:26 UTC+2 schreef Faraz Mirza: > > Hey Guys! > > I am a Computer Science

Re: [Rails] access to cloud9

2016-06-11 Thread Ad Rienks
Thank you. Well, I did not do anything special, but all of a sudden the workspace is there again. Hopefully it stays. Op zaterdag 11 juni 2016 18:57:23 UTC+2 schreef tamouse: > > What have you tried so far? Is Cloud9 support any help? > > On June 11, 2016 at 09:29:48, Ad

[Rails] access to cloud9

2016-06-11 Thread Ad Rienks
Help please! I am doing the tutorial by M Hartl, using Cloud9 IDE. Suddenly it crashed. What to do to get it back? -- You received this message because you are s

Re: [Rails] Ruby on Rails tutorial by Michael Hartl

2016-05-27 Thread Ad Rienks
Norbert, Thanks again! I walked through the tutorial, rereading chapter 3, and there I found my mistake, in this line: *Minitest::Reporters.use!* After correction, the test ran without errors! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" g

Re: [Rails] Ruby on Rails tutorial by Michael Hartl

2016-05-27 Thread Ad Rienks
Op vrijdag 27 mei 2016 10:03:51 UTC+2 schreef Norbert Melzer: > > If you are able to, do an upgrade. If you can't just ignore the warning… > In any case, it is not related to the remaining message you screenshotted > instead of copy pasting… Just read along after the warning lines and take a >

[Rails] Ruby on Rails tutorial by Michael Hartl

2016-05-27 Thread Ad Rienks
essage: *RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: install 2.3.1.* a bit alarming. Can someone help with tips our suggestions? Thank you, Ad -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from thi

[Rails] Ruby on Rails ,TDD ,BDD ,API ,Redis, Resque

2014-12-03 Thread Ad Min
I am looking for Ruby on rails developers for Bangalore location Contract to hire position intersted candidates can send their resume immedaitely to manj...@suntiara.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe fro

[Rails] Re: RJS Handler missing

2011-10-03 Thread ad
RJS was stripped out from 3.1. See http://weblog.rubyonrails.org/2011/4/21/jquery-new-default for details. You may also try the following code from the author of RightJS library: https://gist.github.com/1200232 It should work with jQuery. On Oct 3, 9:59 am, Jithin Syam wrote: > Hi Guys, > > I go

[Rails] Re: Rails 3.1 asset pipeline

2011-09-03 Thread ad
> But when I wanted to test in production, the paths to the assets changed > back to the old format without the digest ( /images/image.png) . Even > though I precompiled the assets. > You need to update /congig/environments/production.rb to reflect the 3.1 one. To be more specific, — You need to a

[Rails] Re: 3.1 development and the asset pipeline

2011-09-01 Thread ad
You may just move all static assets to public folder. That would get them loaded without involving asset pipeline. Correct me, if I'm wrong. On Aug 31, 10:30 pm, Josh wrote: > That sounds horrible.  I'm seeing this occur on every page load, not > just the first one. > > On Aug 31, 2:26 pm, Marti

[Rails] Re: How to handle non model data in form?

2011-05-20 Thread ad
Hi, > added to article.rb: > attr_accessible :author_name You should use attr_accessor instead (not attr_accessible, as You don't have the author_name DB column). -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, se

[Rails] Re: put alias in Model.find query

2011-04-18 Thread Ad Ber
Uhm...I figured out how to do it.. Song.find(:all, :select => "AS s artist, g.genre_name AS name_genre", :joins => "LEFT OUTER JOIN genres AS g on songs.genre_id = g.id", :order => params[:sort]) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed

[Rails] put alias in Model.find query

2011-04-18 Thread Ad Ber
Hi to all, I want to be able to put alias to my Song.find query. the artist field belongs to song model so that i could code efficiently in sorting columns. I want to put an (s) alias to my Song model. In the code below :select => "artist, g.genre_name AS name_genre" should be :select => "s.artis

[Rails] Re: what is the h for in <%=h s.name %>?

2011-04-14 Thread Ad Ber
Ahh...Now I understand better. Thank you Sir. -- 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 post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this gro

[Rails] what is the h for in <%=h s.name %>?

2011-04-14 Thread Ad Ber
<% songs.each do |s| %> <%=h s.name %> <% end %> If i will remove the h..the output is still the same.. thank you for your replies -- 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 post to

[Rails] Re: :url, :update, :text, :action? what are these?

2011-04-12 Thread Ad Ber
Michael Pavling wrote in post #992259: > On 12 April 2011 08:48, Ad Ber wrote: >> what are these called? are they objects? or methods? >> I cant seem to find the right word on how to search more of these >> things..and then I can find maybe a cheat sheet so that I could &

[Rails] :url, :update, :text, :action? what are these?

2011-04-12 Thread Ad Ber
what are these called? are they objects? or methods? I cant seem to find the right word on how to search more of these things..and then I can find maybe a cheat sheet so that I could familiarize more of those thigs above.. TY for the replies. -- Posted via http://www.ruby-forum.com/. -- You rec

[Rails] Re: Display specific field that has duplicate name to other table

2011-04-11 Thread Ad Ber
Frederick Cheung wrote in post #992073: > On Apr 11, 8:11am, Ad Ber wrote: >> In my ruby on rails action or method Controller: >> def print_two_table >> @p = Pay.find_by_sql("SELECT p.id, p.topic, s.id, s.income, s.price FROM >> pays as P LEFT OUTER JOIN sugges

[Rails] Display specific field that has duplicate name to other table

2011-04-11 Thread Ad Ber
HI TO ALL I want to display a specific field in my VIEW but they have the same FIELD name..For example, th id in the PAYMENTS table and the id in the SUGGESTS table have the same field name... I want to be able to display the correct PAYMENTS id and correct SUGGESTS id.. My Database is big im havi

[Rails] Re: Re: Printing field attributes outside the model.find_by_sql

2011-04-10 Thread Ad Ber
Uhm..TY..I have configured the model relationships...I was ABLE to display form.income as long as i include the FIELD IN THE QUERY... My follow up question is what if i want to display a specific field in my VIEW but they have the same FIELD name..For example, th id in the PAYMENTS table and th

[Rails] Re: Printing field attributes outside the model.find_by_sql

2011-04-10 Thread Ad Ber
Todd A. Jacobs wrote in post #992052: > On Apr 10, 7:42pm, Ad Ber wrote: >> @p = Pay.find_by_sql("SELECT p.id, p.topic, s.id, s.income, s.price FROM >> pays as P LEFT OUTER JOIN suggests AS s ON s.b_id = p.b_id WHERE >> p.created_at BETWEEN '2008-03-04&

[Rails] Printing field attributes outside the model.find_by_sql

2011-04-10 Thread Ad Ber
Hi All, I have Model called pays..and it has fields like(id, topic, subject, created_at, b_id) and i also have a Model called suggests with fields(id, income, price, b_id) In my ruby on rails action or method Controller: def print_two_table @p = Pay.find_by_sql("SELECT p.id, p.topic, s.id, s.i

[Rails] text_field :first_name

2011-04-07 Thread Ad Ber
HI ALL, i am new to rails and having a hard time understanding some things.. I have a Model called person and have this code fragment in my VIew 1 <%= form_for :person do |f| %> 2 First name: <%= f.text_field :first_name %> 3 <% end %> does anybody know what :first_name means or what it does

Re: [Rails] Adding nested object in form using AJAX

2010-10-07 Thread AD
Yea i had to do the same thing, check here http://github.com/alloy/complex-form-examples On Thu, Oct 7, 2010 at 8:53 AM, jhaagmans wrote: > Hi, > > I'm using a nested form to create an object. It looks something like > this: > > form_for @object do |f| > f.label :name > f.text_field :name > f

[Rails] Rails session_id is not unique

2010-06-29 Thread AD
have 10 app servers running with config.threadsafe! on). Has anyone encountered this issue? It seems the "randomness" of the session creation is not unique enough and doesnt account for multiple machines (tomcat uses the ip of the machine as well i believe). Thanks AD -- You rec

[Rails] Rails returning session of another user

2010-06-10 Thread AD
issue before? Any idea how this can happen? Thanks AD -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyon

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-17 Thread ad...@fotocera.com
wrote: > As in many cases, if it's difficult to do in Rails, it's probably > wrong. Can you give more detail on why you're generating URLs in a > model rather than in the controller/view that's sending them to the > user? > > --Matt Jones > > On Aug 15, 9:22

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-15 Thread ad...@fotocera.com
2:22 pm, "ad...@fotocera.com" wrote: > > > This only works for instance methods, my problem is that I need to be > > able to access _path from a class method... meaning: > > Well there's nothing stopping you bundling up your url gener

[Rails] Re: ** PLEASE HELP A NEWBIE ** Status: 500 Internal Server E

2009-08-15 Thread ad...@fotocera.com
i ran into a similar looking error when installing the slqite gem and i found that the problem was that a didn't have the header files for sqlite installed. On Aug 15, 9:19 am, kilari wrote: > Craig, > > Check where the file "mysql_config " is on you system.You can use > locate command to find.

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-15 Thread ad...@fotocera.com
s.install(Foo) Foo.generate #=> NameError: undefined local variable or method `login_path' for Foo:Class from (irb):4:in `generate' from (irb):9 On Aug 15, 9:14 am, Frederick Cheung wrote: > On Aug 15, 1:52 pm, "ad...@fotocera.com" wrote: > > &g

[Rails] Re: ** PLEASE HELP A NEWBIE ** Status: 500 Internal Server E

2009-08-15 Thread ad...@fotocera.com
what distribution are you using? On Aug 15, 8:44 am, Craig Westmoreland wrote: > Thankyou for replying. > > i ran sudo gem install mysql and i got the following error: > > ERROR:  Error installing mysql: >         ERROR: Failed to build gem native extension. > > /usr/local/bin/ruby extconf.rb >

[Rails] ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-15 Thread ad...@fotocera.com
So i've been banging my head against this for the better part of the last 5 hours and I have concluded that in my sleep deprived state I'm missing something really obvious and should just ask for help. I need to be able to access named route helpers (XXX_path and XXX_URL) form a class method in a

[Rails] Rails Connection Pool With Firewall

2009-07-08 Thread AD
Does anyone know how to properly configure rails connection pool to behave through a firewall? We are seeing a lot of timeout errors with activerecord (webapp has firewall between it and the firewall) and not sure how to enable connection pool settings similar to DBCP with tomcat. Thanks AD

[Rails] Re: User has many topics or subtopics

2009-06-28 Thread AD
wrote: > > 2009/6/27 AD : >> >> yea sorry if you have a subtopic, you have a topic since a subtopic >> belongs to a topic.  So if I have TopicA, TopicB, and TopicA has >> SubTopicD and SubTopicE, a user can have >> >> TopicB, SubtopicE.  Since SubTopicE

[Rails] Re: User has many topics or subtopics

2009-06-27 Thread AD
didnt have to choose a subtopic if they only wanted to choose a Topic. But choosing a subtopic intrinsically gets you a topic by association of that subtopic to its parent topic. AD On Sat, Jun 27, 2009 at 4:51 AM, Colin Law wrote: > > 2009/6/27 Andrey Ognevsky : >> >> AD wrote: &

[Rails] User has many topics or subtopics

2009-06-26 Thread AD
have user_topics, and user_subtopics tables and manage that way ? or combine into one table with STI and a type ? Thanks AD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To po

[Rails] Attribute Accessors for Phone Number in Form

2009-06-02 Thread AD
hello, I have a field in the DB called phone_number , string 10 chars. In my form i want to make these 3 text boxes (phone1, phone2, phone3). I am trying to figure out how to assemble this to create the phone number before saving. I am trying the following: In the model before_save :make_ph

[Rails] Re: Message Queue for Rails?

2009-03-27 Thread AD
Jruby + JMS is your best bet. That is what I do and works great. Adam On Fri, Mar 27, 2009 at 9:29 PM, Greg Willits wrote: > > So, MQ was an active area for a while with several contenders like AP4R. > > Many libs seemed focused on triggering long or scheduled processes, and > not really for c

[Rails] Re: Production Logging with Rails 2.2.2

2009-03-12 Thread AD
r.auto_flushing =1 > > I wonder if there is an issue with Rails 2.2.2 flushing the log > buffer? > > Thanks, > Tom > > On Mar 11, 8:37 pm, AD wrote: >> Interesting i am having the same issue with Jruby/Tomcat.  Nothing is >> getting logged to localhost-YY

[Rails] Re: Production Logging with Rails 2.2.2

2009-03-11 Thread AD
Interesting i am having the same issue with Jruby/Tomcat. Nothing is getting logged to localhost--MM-DD.log files at all after a period of time. Is there no way to set the buffer threshold to force a flush on every log ? Adam On Wed, Mar 11, 2009 at 4:36 PM, tomrossi7 wrote: > > Its worth

[Rails] Jruby / Rails / Logging

2009-03-09 Thread AD
Hello, I am noticing an odd issue where after a while there are no more logs in the localhost--MM-DD.log file in Tomcat when running Jruby/Rails under Tomcat 5. The logs seem to show up fine in the beginning but then after a while only errors show up and no info/debug information. Has any

[Rails] Re: Anyone using JRuby with Rmagick?

2009-03-05 Thread AD
we use mini_magick fine with JRuby On Thu, Mar 5, 2009 at 4:09 PM, Maurício Linhares wrote: > > You should go for image_voodoo, not RMagick -> > http://blog.nicksieger.com/articles/2008/03/27/imagevoodoo-0-1-released > > - > Maurício Linhares > http://alinhavado.wordpress.com/ (pt-br) | http://b

[Rails] Re: Foreign-key confusion

2009-02-21 Thread Ad Richards
Thanks Fred, I took your advice and added a theatre_id column to the Shows table. Then I added the following callback to the Shows model, in order to automatically update the :theatre_id column with the id of the corresponding theatre in the Theatres table. class Show < ActiveRecord::Base bel

[Rails] Foreign-key confusion

2009-02-21 Thread Ad Richards
Hi, I am a bit confused about managing the relationship between two of my tables: I have developed a script using scRUBYt that scrapes data from a website and dumps the following four fields into my Shows table: class CreateShows create table :shows do |t| t.string :date t.string :venue

[Rails] Re: scalable file uploads with Rails

2009-02-07 Thread AD
if you are up to it, you can also use JRuby. JRuby uses native threads so you should get good non-blocking performance without having to configure any "runtimes". I use it and get great performance. Adam On Fri, Feb 6, 2009 at 8:11 PM, Mr_Tibs wrote: > > Hi, > > I'm involved in a project wher

[Rails] Re: restful_authentication - using http auth in IE

2009-01-26 Thread AD
wierd that this happens in IE though, I had the same issue. Did you ever properly resolve it? We need http auth for API calls. On Sun, Jan 25, 2009 at 5:24 PM, Chris Bartlett wrote: > > I didn't want http auth or cookie-based logins at all, so I modified > the current_user method in lib/authent

[Rails] Re: Recovering Mysql::Error - Can't rescue the exception

2009-01-26 Thread AD
I got this issue in JRuby / tomcat / rails before using JNDI. Basically the issue was prior to rails 2.2 there was no connection pool so if the timeout value in mysql hit a stale connection I got this. So we implemented DBCP connection pooling in tomcat which forced a test on the connection befor

[Rails] Re: Thread safety in 2.2.2 - Thread.new { do_sth } to do background job?

2009-01-13 Thread AD
i thought AR was thread-safe in 2.2 ? On Tue, Jan 13, 2009 at 9:24 PM, Xie Hanjian wrote: > Hi Hubert, > > If @file.convert is high cpu intensive task, you'd better use workers at > background with a queue, or try jruby since MRI use green threads. > > Jan > > * Hubert Łępicki [2009-01-12 03:54

[Rails] Re: how can I tell which transaction each SQL call is in?

2009-01-09 Thread AD
you should use query_trace plugin. Adam On Fri, Jan 9, 2009 at 6:20 AM, Greg Hauptmann < greg.hauptmann.r...@gmail.com> wrote: > > hi, > > I'm trying to debug some transaction related issues in my code: > > How could I tell which Sql statement (from logs) which transaction (if > any) they are in

[Rails] Re: Having Problems Starting with Ruby on the rails

2008-12-31 Thread AD
this wont work until you create a manage controller. On Wed, Dec 31, 2008 at 12:08 PM, bobnyso...@googlemail.com < bobnyso...@googlemail.com> wrote: > > Please can you help I'm having this problem when I type in this URL on > my browser: http://localhost:3000/Manage > > Routing Error > > No route

[Rails] Re: Newbie Join-Model Misery

2008-12-29 Thread Ad Richards
Perfect! Works like a charm! A big thanks to all! If anyone is interested the finished app can be downloaded from: http://github.com/aglasspool/rubygrade/tree/master or there is an online demo at http://rubygrade.heroku.com Thanks again! -- Posted via http://www.ruby-forum.com/. --~--~

[Rails] Rails 2.2 sweeping error

2008-12-22 Thread AD
It appears we are seeing an error when we enable config.action_controller.perform_caching with our Rails 2.2 upgrade. My initial hunch is this is related to acts_as_audited plugin but not sure. has anyone encountered this error and have a fix ? Rails 2.2.2, Jruby 1.1.6, Tomcat 5.5.27 undefined

[Rails] 2.2.1 Target Date

2008-11-13 Thread AD
a stable release :-) AD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group,

[Rails] IO Error

2008-11-07 Thread AD
has anyone seen an IO error like this? Trying to track it down, running Jruby/Rails on Tomcat here... INFO: /!\ FAILSAFE /!\ Fri Nov 07 17:26:01 -0500 2008 Status: 500 Internal Server Error IO Error /usr/local/tomcat/webapps/myapp/WEB-INF/gems/gems/actionpack-2.1.1/lib/action_controller/r

[Rails] Re: Rails 2.1.1 setting datetime to nil at 00:00:00

2008-11-03 Thread AD
confirmed to be an issue with validates_date_time http://www.semergence.com/2006/12/20/validates_date_time-not-ready-for-prime-time/ On Mon, Nov 3, 2008 at 7:07 PM, AD <[EMAIL PROTECTED]> wrote: > I used 19:00 b/c of Time zones (EST is GMT-5). I have a before_filter that > sets t

[Rails] Re: Rails 2.1.1 setting datetime to nil at 00:00:00

2008-11-03 Thread AD
ate | datetime Adam On Mon, Nov 3, 2008 at 5:03 PM, AD <[EMAIL PROTECTED]> wrote: > Hello, > There appears to be a strange bug in Rails 2.1.1 where if I set a datetime > field to -MM-DD 00:00:00 (using TimeZone support) Rails returns nil, > instead of -MM-DD 00:00:00 &g

[Rails] Rails 2.1.1 setting datetime to nil at 00:00:00

2008-11-03 Thread AD
Hello, There appears to be a strange bug in Rails 2.1.1 where if I set a datetime field to -MM-DD 00:00:00 (using TimeZone support) Rails returns nil, instead of -MM-DD 00:00:00 Here is confirmed output: >> c = Clip.find(53385) => # >> c.publish_date = "2008-11-03 19:00:00" => "2008-11

[Rails] Re: Future of Ruby as well as Rails

2008-10-14 Thread AD
if you look at things like JRuby which allow easier transition into Java corporate environments, I think this only helps. On Mon, Oct 13, 2008 at 10:03 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote: > > For what it's worth, the fact that Ruby does not yet rule the world is > counted as a reaso

[Rails] Re: Newbie Join-Model Misery

2008-09-25 Thread Ad Richards
Oh that's a good point, I didn't consider that. What do you mean by working around the editing stuff? Do you mean like including an "if, else" somewhere in the view. i.e: if a grade already exists for a student and assignment then show it, otherwise create a new one (with a default value).?? --

[Rails] Re: Newbie Join-Model Misery

2008-09-25 Thread Ad Richards
Thanks fred, The problem with creating gradations separately when students complete assignments, is that I am then left with no fields in my view in which to enter grades. My plan was to have it so that when an assignment was created, a corresponding grade field would be created for each stude

[Rails] Re: Newbie Join-Model Misery

2008-09-24 Thread Ad Richards
> How does the new assignment know which students it applies to? I assume > that there is something else (like a Course) that the assignment belongs > to, to which the students are related as well... > > When you create a new assignment for a course, that action should be the > one to walk th

[Rails] Re: Newbie Join-Model Misery

2008-09-24 Thread Ad Richards
Everything is now working and I am able to edit the grades inline using super inplace controls from http://os.flvorful.com/super_in_place_controls. However, I have realised that when I create a new assignment a corresponding field for the grade is not automatically created in the join model.

[Rails] Re: Newbie Join-Model Misery

2008-09-17 Thread Ad Richards
> ><% @assignments.each do |assignment| %> > ><%= h assignment.name %> > ><% end %> > > > <% @students.each do |student| %> > > <%= h student.name %> ><% @assignments.each do |assignment| %> > ><% if g = student.gradation_hash[assignment.id] %

[Rails] Newbie Join-Model Misery

2008-09-16 Thread Ad Richards
Being a rails newbie, I appear to have hit a large wall. I am trying to create an online gradebook using rails, where I and other teachers at my school can record students' grades for all their homework assignments. students assessment1 assessment2 assessment3