On 21 May 2015 at 00:56, Binu A. li...@ruby-forum.com wrote:
CODE site_layout_test.rb
require 'test_helper'
class SiteLayoutTest ActionDispatch::IntegrationTest
test layout links do
get root_path
assert_template 'static_pages/home'
assert_select a[href=?], root_path,
On Thursday, May 21, 2015 at 6:58:35 AM UTC+1, Ruby Railhead wrote:
Idea 3: Subclass ActiveRecord::Base (to say ActiveRecordLocal) and mix in
the modules mentioned above into this class.
Thoughts: This makes is clearer that when you're using ActiveRecordLocal,
you're not getting the
I know that we can add records like
record.posts Post.find(1);
but how can add the same Post.find(1) record if I have a variable that
contains the name posts
I have something like this
column_name = posts
record[column_name] Post.find(1);
it is throwing an error
NoMethodError
Does RailsInstaller support RVM?
On Wednesday, May 20, 2015 at 10:03:56 AM UTC-4, Brian Hogan wrote:
I teach Rails and have done so for nearly 8 years in workshops and
classroom settings. The way to do this on Windows is to use RailsInstaller.
http://railsinstaller.org/en
It sets up
Hi guys,
We made a SAAS platform for community management. We have been requested to
give customized experience for each community and eventually end community
managers would like to modify the views / element locations / css / js .
With a lot of research , we have decided to go with
On Sunday, 10 January 2010 14:57:15 UTC-5, Matt Jones wrote:
On Jan 9, 6:16 pm, codeinnova sumangur...@gmail.com wrote:
So i had a boolean attribute in my model which gets interpreted to
tinyint(1) in mysql by rails migrations. Now tinyint(1) accepts a
range in mysql and i want to change
On 21 May 2015 at 13:48, kranthi kumar kranthi.3...@gmail.com wrote:
I know that we can add records like
record.posts Post.find(1);
but how can add the same Post.find(1) record if I have a variable that
contains the name posts
I have something like this
column_name = posts
do you develop rails on windows?
On Fri, May 22, 2015 at 6:13 AM, Ganesh Ranganathan
ganesh.ranganathan...@gmail.com wrote:
On Fri, May 22, 2015 at 3:28 AM, Walter Lee Davis wa...@wdstudio.com
wrote:
RVM doesn't support Windows, so there's that...
pik is a similar utility on windows
windows is better os for oa, so it's my choice to use windows, but rails's
support for windows is terrible
On Wed, May 20, 2015 at 8:06 PM, Leandro França leandro.fra...@pobox.com
wrote:
I see.
I tried a few times to run it natively on windows, but I think it doesnt
worth the hassle. Too
RVM doesn't support Windows, so there's that...
Walter
On May 21, 2015, at 9:14 AM, Cody Skidmore c...@skidmore.us wrote:
Does RailsInstaller support RVM?
On Wednesday, May 20, 2015 at 10:03:56 AM UTC-4, Brian Hogan wrote:
I teach Rails and have done so for nearly 8 years in workshops and
Do these addresses have any difference besides being primary or secondary? Are
there extra fields in one that are not in the other? Or is primary maybe a
boolean on the address object?
Walter
On May 21, 2015, at 3:36 PM, Elizabeth McGurty emcgur...@gmail.com wrote:
I have a parent table.
On Fri, May 22, 2015 at 3:28 AM, Walter Lee Davis wa...@wdstudio.com
wrote:
RVM doesn't support Windows, so there's that...
pik is a similar utility on windows
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe from this
Create two associations with conditions on the parent table with conditions
that point to each type of address.
For instance:
has_many :addresses
has_one :primary_address,
-() do
where( :type = :primary )
end,
:class_name = Address
This will make primary address accessible through addresses
*changes to one association will not be reflected in the other until reload.
On Thu, May 21, 2015 at 6:14 PM, Stewart Mckinney lordma...@gmail.com
wrote:
Create two associations with conditions on the parent table with
conditions that point to each type of address.
For instance:
has_many
Rake test
Rake db:migrate
bundle exec rake test
bundle exec db:migrate
All the return no result no errors , just a blank console .
This is happening only in my current project .
It was working earlier in the same project .
In other projects all rake commands are working !
Please help !
I have a parent table. And associated with that parent table is two
possible addresses, a primary one and/or an alternative: (has_many and
accepts_nested_attributes_for).
Rather than creating a second addresses table, I have used a flag,
address_type to distinguish primary from alternative,
he seguido todos los pasos de instalacion Versiones para Güindous( sorry ya
me cambio luego a otro de linux)
ruby 2.1.6p336
Rails 4.3. Pero:
new rails Primer
An error occurred while installing json (1.8.2), and Bundler cannot
continue.
Make sure that `gem install json -v '1.8.2'` succeeds
On 21 May 2015 at 17:52, Davide Cagliostro
davidecagliostro2...@gmail.com wrote:
he seguido todos los pasos de instalacion Versiones para Güindous( sorry ya
me cambio luego a otro de linux)
ruby 2.1.6p336
Rails 4.3. Pero:
new rails Primer
An error occurred while installing json (1.8.2),
18 matches
Mail list logo