Hi there
Yes, I know very little of ruby. I must take a crash course?
Probabily.
Anyway, I try to ask this here.
I have a control: customer_controller.
From here, I can do something like:
@id = 1
@customer = Customer.find(id)
Now @customer will contain all the fetched record for customer with
On 9 June 2011 08:06, Sta Canovist stacanov...@gmail.com wrote:
Hi there
Yes, I know very little of ruby. I must take a crash course?
Work through the rails tutorial at railstutorial.org which is free to
use online. Even though it may appear that this app is not similar to
what you want to
Just use spreadsheet gem:
http://rubygems.org/gems/spreadsheet
On 8 juin, 08:20, dev_rails pandu.rails...@gmail.com wrote:
Hi,
Please help to create a spreadsheet view in rails application. Need to
display the cell values from DB with manipulating option.
Please specify gems/plugin if
Oops, you're definitely right...
We're looking for local or national and will be paying an hourly
rate... I don't have the exact rate at the moment but we're highly
negotiable - looking for someone at an intermediate level.
On Jun 8, 12:15 pm, Peter Bell pe...@pbell.com wrote:
At the risk of
I think your issues have to do with your use of the type column and it
triggering rails STI magic. STI is assuming all columns are defined on
the parent and will never attempt to loan column names from the child
tables. I am investigating using native postgres inheritance for a
project I'm working
Previously we've used Rails2.xx with no problems and we're trying to
upgrade to ruby 1.9.2p180 and Rails 3.0.7 with pik to keep ruby
versions separate.
After some initial difficulties with MySql2 gem installation,
following a href=http://rorguide.blogspot.com/2011/03/installing-
I am trying to use the tabs function from jQuery UI in a Rails app. I
am using a helper for the navigation and I would like to keep it that
way. The code in my helper is:
def links_for_navigation
html =
html = HTML
ul
lia href=#tabs-1Courses/a/li
lia
Check https://github.com/mongoid/mongoid/issues/648
On Jun 9, 10:48 am, Alex Katebi alex.kat...@gmail.com wrote:
When I set the rails_env to production in nginx.conf I get:
Error message:
db_name must be a string or symbol
--
You received this message because you are subscribed to the
On 8 June 2011 19:43, Lorysa Rossnagel asy...@gmail.com wrote:
We're looking for local or national
Which nation? ... Which locality? ... :-/
--
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
On Jun 9, 9:42 am, Colin Law clan...@googlemail.com wrote:
Work through the rails tutorial at railstutorial.org which is free to
use online. Even though it may appear that this app is not similar to
what you want to write you will learn a great deal.
Thanks I will.
--
You received this
Hello
My controller creates an instance of a module class.
The module resides into the /vendor folder.
/vendor/plugins/my_client/lib/client.rb
This class, or all this app, has been done by someone that apparently
know much more about ruby than me.
As long as I make changes inside this class,
It works! Thanks! stupid brackets... :-)
On Jun 9, 12:20 am, pipplo joe.kos...@gmail.com wrote:
I think your form is not setting remote correctly.
If it was submitting correctly you should not see ?remote=true.
form tag takes 2 parameters url_for_options and options. If you don't
put the
On Jun 9, 12:18 pm, Sta Canovist stacanov...@gmail.com wrote:
Hello
Oh well, solved. I needed to restart WEBrick. I need to do it each
time I make changes in modules!
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this
On Thursday 09 June 2011 03:32 AM, Eric Norberg wrote:
Previously we've used Rails2.xx with no problems and we're trying to
upgrade to ruby 1.9.2p180 and Rails 3.0.7 with pik to keep ruby
versions separate.
After some initial difficulties with MySql2 gem installation,
followinga
Hi guys,
I am currently developing a web app and a mobile app with pretty much
the same guts. As we all know, entering 'rails s' will allow me to
pull the site up in my local browser at 'localhost:3000'. Is there
anyway I can access this from my mobile phone so that I can see how it
looks before
On 9 June 2011 16:27, bertly_the_coder much...@gmail.com wrote:
Is there
anyway I can access this from my mobile phone so that I can see how it
looks before sending it to a public host?
One way is to download one of the desktop emulators for the mobile OS
of your choice.
You can also make
Have a look at http://pow.cx from 37 Signals. If you are using your
local WiFi network on both your computer and your phone, it should
Just Work™.
Walter
On Jun 9, 2011, at 11:27 AM, bertly_the_coder wrote:
Hi guys,
I am currently developing a web app and a mobile app with pretty much
On 9 June 2011 16:27, bertly_the_coder much...@gmail.com wrote:
Hi guys,
I am currently developing a web app and a mobile app with pretty much
the same guts. As we all know, entering 'rails s' will allow me to
pull the site up in my local browser at 'localhost:3000'. Is there
anyway I can
On Jun 8, 9:01 pm, Bob Roberts brobe...@c2logix.com wrote:
I am trying to use the tabs function from jQuery UI in a Rails app. I
am using a helper for the navigation and I would like to keep it that
way. The code in my helper is:
def links_for_navigation
html =
html = HTML
Are there any examples on how to use coffee script in your rails app. I
don't know how people are using coffee script. I know the mechanics of how
to write the coffee script. But how do I tie it to my views / application?
--
You received this message because you are subscribed to the Google
Here is the very condensed form how I am doing it:
Each rendered view contains a class controller_nameofcontroller and
controllername_actionname attached to the body element
In my scripts I have the following scenarios ( I am using backbone, but this
works as well without it):
1. Applies to
Hi, I'm trying create a user system for a future project but I have a
problem when I want give to my users the Welcome. This is my code:
#application_controller
class ApplicationController ActionController::Base
protect_from_forgery
helper_method :current_user
private
def
hi,
i have an array of data and i would make a graph to illustrate them.
the array is a collection of number of users who have a number of
freinds between eg: 1-10 then 10 - 20 . User.last.id
-
nbr of freinds | nbr users |
On 9 Jun 2011, at 17:26, Distriker ivanhcelrinconelme...@gmail.com wrote:
Hi, I'm trying create a user system for a future project but I have a
problem when I want give to my users the Welcome. This is my code:
#application_controller
class ApplicationController ActionController::Base
Just connect both your computer and phone to same wifi network and point
phones browser to your computers ip address:3000
On Jun 9, 2011 8:42 AM, Colin Law clan...@googlemail.com wrote:
On 9 June 2011 16:27, bertly_the_coder much...@gmail.com wrote:
Hi guys,
I am currently developing a web app
On 06/09/2011 06:13 PM, Frederick Cheung wrote:
On 9 Jun 2011, at 17:26, Distrikerivanhcelrinconelme...@gmail.com wrote:
Hi, I'm trying create a user system for a future project but I have a
problem when I want give to my users the Welcome. This is my code:
#application_controller
class
Thanks. Just in case anyone is curious adding the Accept headers worked
perfect!
On Wed, Jun 8, 2011 at 1:32 PM, Peter De Berdt peter.de.be...@pandora.bewrote:
On 08 Jun 2011, at 22:22, Joe Koston wrote:
I will try to set HTTP_ACCEPT when I get home. I know it's not being set
now, but I
On 9 Jun 2011, at 18:31, Iván Hernández ivanhcelrinconelme...@gmail.com wrote:
On 06/09/2011 06:13 PM, Frederick Cheung wrote:
On 9 Jun 2011, at 17:26, Distriker ivanhcelrinconelme...@gmail.com wrote:
Hi, I'm trying create a user system for a future project but I have a
problem when I
On 06/09/2011 07:04 PM, Frederick Cheung wrote:
On 9 Jun 2011, at 18:31, Iván Hernández
ivanhcelrinconelme...@gmail.com
mailto:ivanhcelrinconelme...@gmail.com wrote:
On 06/09/2011 06:13 PM, Frederick Cheung wrote:
On 9 Jun 2011, at 17:26, Distrikerivanhcelrinconelme...@gmail.com
On Jun 9, 2011, at 2:17 PM, Iván Hernández wrote:
On 06/09/2011 07:04 PM, Frederick Cheung wrote:
On 9 Jun 2011, at 18:31, Iván Hernández ivanhcelrinconelme...@gmail.com
wrote:
On 06/09/2011 06:13 PM, Frederick Cheung wrote:
On 9 Jun 2011, at 17:26, Distriker
I am following the Ruby on Rails tutorial here:
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book?version=2.3
I am at this section:
http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=2.3#code:layout_links_spec
Here is my layout_links_spec.rb:
require 'spec_helper'
WOW!!! Thank you for all these good suggestions!! I will try them out.
Thank you so much guys!!
On Jun 9, 12:12 pm, Adrian Caceres acace...@verizon.net wrote:
Just connect both your computer and phone to same wifi network and point
phones browser to your computers ip address:3000
On Jun 9,
I've pushed an rc3. Yes, we skipped one. I screwed up the rc2, so I yanked
it, and we're going straight to rc3. Good thing it's just a release candidate,
right? ;-)
As usual, please test this against your application and report any regressions
to the [rails core mailing
I've pushed a 3.1.0.rc4. Please test it against your application against this
release candidate and report any regressions to the [rails core mailing
list](http://groups.google.com/group/rubyonrails-core). I would like to hear
your feedback, good or bad. Especially if it's good. 3 3
In two
On Fri, Jun 10, 2011 at 1:05 AM, Adel Mediouni mediouni.a...@gmail.comwrote:
hi,
i have an array of data and i would make a graph to illustrate them.
the array is a collection of number of users who have a number of
freinds between eg: 1-10 then 10 - 20 . User.last.id
Hi, I am new in Rails, and now i have a problem to take data from more
4 tables in DB
This is my code:
//user model
belongs_to season
belongs_to album
has_many albums
-
def get_pic
@pic = Picture.where(:album_id = 'Album.album_id' ,
user.where(:culture_id =
In both of the below, the explicit escaped back slash %2F is
converted to an actual backslash.
%= link_to blah, types_path(Vits%2Fmins) %
%= link_to blah, :controller = :browse, :action = :list, :types
= Vits%2Fmins %
Is this a safety feature of the link_to helper?
On Jun 8, 9:16 pm,
Even the below does the same thing:
%= link_to blah, /types/Vits%2Fmins %
On Jun 9, 10:42 pm, tashfeen.ekram tashfeen.ek...@gmail.com wrote:
In both of the below, the explicit escaped back slash %2F is
converted to an actual backslash.
%= link_to blah, types_path(Vits%2Fmins) %
%= link_to
hi all,
I have an error undefined method `each' for #Picture:0x927dea0
what is that mean?
in my view
[code]
% @user.each do |p| %
%= p.image %
% end %
[/code]
in controller
[code]
@user=picture.all(
:joins = :culture,
:conditions =
Simple. You get only one picture object (the first one) because you're using
.first method. Since you have only one object, you can't iterate over it
using the each loop. Get it?
Just use @user.image instead in the view :)
On Fri, Jun 10, 2011 at 9:46 AM, joanne joanne0...@gmail.com wrote:
hi
On Fri, Jun 10, 2011 at 12:23 PM, Dheeraj Kumar
a.dheeraj.ku...@gmail.comwrote:
Simple. You get only one picture object (the first one) because you're
using .first method. Since you have only one object, you can't iterate over
it using the each loop. Get it?
Just use @user.image instead in
On 9 June 2011 18:05, Adel Mediouni mediouni.a...@gmail.com wrote:
hi,
i have an array of data and i would make a graph to illustrate them.
Open Flash Charts used to be a very good choice. Worth having a look
to see if it does what you need.
--
You received this message because you are
42 matches
Mail list logo