Hello all!
I just published a leanpub book on how to upgrade your Rails 3 application
to Rails 4. It covers all new features introduced in Rails 4 and contains
the deprecated features as well. You can follow along with an included
upgrade checklist to see if you upgraded all breaking changes
Hi,
I am new to ruby and rails. I have been working through a few tutorials etc
trying to get up to speed.
However I have run into one issue I'm unsure how to go about solving. I am
using RVM to manage my ruby verions. By default I have 1.8.7 installed on
my system(Ubuntu man, but I am on
On Ubuntu you need libreadline6 and libreadline6-dev, though I don't
know whether that is the same on mint. You might need to remove and
re-install ruby in rvm after installing libreadline so that it
re-compiles with the right options. The full list of stuff I install
before installing rvm is
Hello All,
I want to pass conditions in respond_with like this:
user = User.where(updated_at = :start_date AND updated_at = :end_date,
{:start_date = some_date, :end_date = Time.now})
respond_with(user, :include = :sub_users)
I need to pass the same parameters in case of sub users.
How can I
thanks for advice, but that doesn't work
вторник, 2 апреля 2013 г., 1:07:14 UTC+4 пользователь Barry написал:
As you may know, this gem initializer file has code, which you need to
uncomment to show validation error inline to every form field:
# Uncomment the following block if you want
Depending on your app feature, The best choice is varying. For rails
server, unicorn and puma are latest one.
2013년 4월 2일 화요일 오전 5시 10분 1초 UTC+9, Phil 님의 말:
I'm in the midst of a few new Rails deployments as well as being tasked to
revise an existing older deployment to help improve
I want to pass conditions in respond_with like this:
user = User.where(updated_at = :start_date AND updated_at = :end_date,
{:start_date = some_date, :end_date = Time.now})
respond_with(user, :include = :sub_users)
I need to pass the same parameters in case of sub users.
How can I
I want json data passing date parameter ... As users has_many sub_users I want
those sub_users data also with same condition as users. Is it possible to
achieve that ?
- Reply message -
From: Paulo Henrique Lopes Ribeiro plribeiro3...@gmail.com
To: rubyonrails-talk@googlegroups.com
Sure it is possible. The only thing is, the right place isn't inside
respond_with. =p
2013/4/2 aavinash.beh...@gmail.com aavinash.beh...@gmail.com
I want json data passing date parameter ... As users has_many sub_users I
want those sub_users data also with same condition as users. Is it
Hi All,
just in a spot of bother with this gem, I am trying to create a new
location and get the above msg.
here is my controller:
class LocationsController ApplicationController
# GET /locations
# GET /locations.json
def index
@locations = Location.all
@json =
On 2 April 2013 15:34, Jax javier_rossetti1...@hotmail.com wrote:
NoMethodError in Locations#new
Showing C:/Postgrads0204/app/views/locations/_form.html.erb where line #1
raised:
undefined method `model_name' for NilClass:Class
Extracted source (around line #1):
1: %=
Thanks for the advice on the upcoming RSpec expect syntax.
On Sunday, March 31, 2013 2:16:50 AM UTC-7, Gjaldon wrote:
Here's a post by Jose Valim on the reasoning behind the change:
http://blog.plataformatec.com.br/2012/06/improving-the-integration-between-capybara-and-rspec/
As a quick
Hi Colin,
Thank you for your comment, I was actually missing a end tag to close off
the class in the controller!
Cheers anyway
J
On Tuesday, April 2, 2013 3:34:11 PM UTC+1, Jax wrote:
Hi All,
just in a spot of bother with this gem, I am trying to create a new
location and get the above
On 2 April 2013 17:06, Jax javier_rossetti1...@hotmail.com wrote:
Hi Colin,
Thank you for your comment, I was actually missing a end tag to close off
the class in the controller!
A missing end tag in the controller code gave you the error undefined
method `model_name' for NilClass:Class?
I came across some posts which postulate that it's undesirable to
share helper methods across controller and views because UI code
(designed to render HTML) should be separate from controller code
(designed for handling requests). That makes sense but there are
times, a good example is filtering,
Ok guys, finally gem caused several issues, which was hard to debug, so
finally I just set up my own jquery validation, and it was no so hard as I
imagined. Like this solution, not always gems are suitable, and it was good
practice)
вторник, 2 апреля 2013 г., 1:07:14 UTC+4 пользователь Barry
I want to know this too. Did you find out?
On Wednesday, March 21, 2012 2:12:09 PM UTC-7, John Merlino wrote:
Hey all,
I looked at source code for fields_for:
def fields_for(record_name, record_object = nil, fields_options = {},
block)
fields_options, record_object = record_object,
If I want to fetch the json data in nested form ?
On Tue, Apr 2, 2013 at 7:52 PM, Paulo Henrique Lopes Ribeiro
plribeiro3...@gmail.com wrote:
Sure it is possible. The only thing is, the right place isn't inside
respond_with. =p
2013/4/2 aavinash.beh...@gmail.com aavinash.beh...@gmail.com
18 matches
Mail list logo