und would work. You are basically ignoring the asset pipeline
Steve
On Wednesday, March 6, 2019 at 6:16:28 AM UTC-6, Colin Law wrote:
>
> I hope someone can help me with an assets problem. I have had to
> rebuild a production server and images are no longer getting served.
>
index into were that array is in the whole truth array.
Not sure if it has any use,
Steve
> On Feb 22, 2019, at 3:10 PM, Marco Antonio Almeida <mailto:marcoafi...@gmail.com>> wrote:
>
> Hi Sapna,
>
> This is a fun exercise to do and also to do some refactoring after I got to
I upgraded my MacBookAir to Mojave several weeks ago which includes Safari
12.0.1. I've also had been upgrading several internal rails applications to
Rails 5.1.6 and new version of RailsFoundation with xy-grid.
I then started having problems with those applications. Mainly a CRUD
delete link
Yeah, I created a Rails 3 and Rails 4 project. Rails 3 doesn't support
#cache_key on collection, and Rails 4 uses each individual element to
create a cache key.
I set up byebug and traced the #cache view helper. The reason the relation
is being loaded is because the helper eventually calls
In Rails 5, you can turn cache versioning on and override #cache_version in
your model if you'd like to return a different column.
https://github.com/rails/rails/blob/b2eb1d1c55a59fee1e6c4cba7030d8ceb524267c/activerecord/lib/active_record/integration.rb
In earlier versions of Rails, you can
I've been developing with Rails for a few years now, but one part I haven't
used is view fragment caching.
I'm using it now, and I'm seeing what I think is undesirable behavior, but
I need someone with experience to tell me if it's supposed to be this way.
I'm caching a collection, and it runs
httparty might do the job
On Wednesday, May 31, 2017 at 10:27:42 AM UTC-7, Joe Guerra wrote:
>
> Hmm, which gem would allow you to perform http requests within Rails? I
> would like to send a request to the canadapost website and pass it some
> parameters and return a shipping total.
>
> I do
Recently posted a blog discussing messaging using Ruby on Rails. IBM MQ
Light is used as a messaging client connecting to an IBM MQ queue manager
running the AMQP listener
https://developer.ibm.com/messaging/2015/08/14/mq-light-on-rails/
--
You received this message because you are subscribed
:)
Thanks man,
On Tuesday, August 19, 2014 4:35:23 PM UTC+5:30, Ruby-Forum.com User wrote:
Thanks Steve it's working... i have this hidden fields for adding
anothers sublessons and it's seems like it's generating some nasty
ids...if i want to create and update same time i have to make another
has a way of doing it properly :)
Thanks!
Steve
--
@stev4nity
--
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+unsubscr...@googlegroups.com
On Tuesday, August 19, 2014 1:03:03 PM UTC+5:30, Marius Turcu wrote:
I'm stuck and i don't know why it is not working right. I have a model
lesson wich has many sublessons. When i update the lesson rails update
properly the lesson attributes but is creating another sublessons
records
PM UTC+5:30, Ruby-Forum.com User wrote:
Thanks Steve, but now is give me error message...i write :id instead of
sublesson_id ...This :id where do he come from from?
Thanks!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed
developer: the
last 6 years working mostly with Ruby and Rails, prior to that a Smalltalk
developer, earlier on at Apple in the Multimedia Lab. I'd work remotely or
be happy to come in if you're local to the SF bay area.
Thanks warmly,
Steve Enzer
--
You received this message because you are subscribed
Hi
You should totally try CircleCI. Its only $19/m and gives you unlimited
builds. But basic plan supports no parallel builds though.
Has nice support for Continuous Deployment and has loads of Integrations 3.
have a look.
--
Steve
On Thursday, May 8, 2014 6:52:33 PM UTC+5:30, Ganesh
Nevermind. I don't know what I was thinking using @request.users directly
when I should have been using @request.request_user_roles instead.
This works fine:
@request.request_user_roles.joins(:request_role_types).merge(RequestRoleType.is_initiator)
Then I can get the User and the user's Role
I have two top-level entities joined with a third table (many-to-many
relationship) which uses yet another table (lookup/reference table) to
describe the nature of the relationship of the join. ActiveRecord is
adding an unnecessary JOIN which results in duplicate rows being returned.
[See
has a pretty extensive coverage of
ActiveRecord http://guides.rubyonrails.org/active_record_querying.html
If you want to achieve something specific, then you'll find a lot of
tutorials for that. And as always you can ask here as well :)
Hope this helps.
--
Steve Robinson
about.me/steverob
I'm having a tough time tracking down why my mail is not being sent from an app
I migrated from 3.0 - 3.1 - 3.2. The relevant code sections are in this SO
question. My questions here are:
1) Does something just jump out as wrong in my setup?
2) How would you track this down. All my specs pass
. [Backport
#8329] *Elia Schito*
* Add i18n scope to `distance_of_time_in_words`. [Backport #7997]
*Steve Klabnik*
* Fix side effect of `url_for` changing the `:controller` string
option. [Backport #6003]
Before:
controller = '/projects'
url_for :controller = controller, :action
As a software engineer you surely get numberless emails and pitches every
week from uninformed recruiters, headhunters and IT staffing agencies.
AuctionFlair helps you change how finding a job works for developers by
having the employers come to them rather than the other way around.
Get a
Hi All,
In my project I am using iframe popup box to load url that I need to
locate. In that users can navigate all pages with in iframe only. Here
User may not reload the parent window. In this case, Session automatically
timedout. Please help me to reset session timeout ,even users working
Colin Law wrote in post #1071405:
On 5 August 2012 22:24, Steve Morrissey li...@ruby-forum.com wrote:
%= render @comments %
commented %= time_ago_in_words comment.created_at %/span
15 LIMIT 1
CACHE (0.0ms) SELECT users.* FROM users WHERE users.id = 14
LIMIT 1
Rendered
Colin Law wrote in post #1071422:
On 6 August 2012 14:13, Steve Morrissey li...@ruby-forum.com wrote:
Completed 500 Internal Server Error in 21602ms
Thanks for the continued replies, Colin.
username: uberamd, isadmin: nil, isbanned: nil, created_at:
comment.created_at. But alas, I am clearly
Colin Law wrote in post #1071427:
On 6 August 2012 14:29, Steve Morrissey li...@ruby-forum.com wrote:
undefined method `username' for nil:NilClass
So I'm basically very confused right now. It looks like comment.user has
everything I'd need to do that, yet nothing works. I can't even do
Steve Morrissey wrote in post #1071429:
Colin Law wrote in post #1071427:
On 6 August 2012 14:29, Steve Morrissey li...@ruby-forum.com wrote:
undefined method `username' for nil:NilClass
So I'm basically very confused right now. It looks like comment.user has
everything I'd need to do
Colin Law wrote in post #1071341:
On 5 August 2012 03:42, Steve Morrissey li...@ruby-forum.com wrote:
Since you have not quoted the previous message I have just wasted time
looking back through the thread to work out what this is about.
Remember this is a mailing list not a forum, though you
:in
`_app_views_comments__comment_html_erb___715147692_2186695040'
app/views/snippets/show.html.erb:24:in
`_app_views_snippets_show_html_erb__1112126603_2190824420'
Colin Law wrote in post #1071379:
On 5 August 2012 21:48, Steve Morrissey li...@ruby-forum.com wrote:
communication (which is even harder to grasp while viewing the
of this yet
Alright so I changed my comment form snippet from:
%= form_for(@comment, :html = { :class = joinform }) do |f| %
To:
%= form_for([@snippet, @snippet.comments.build]) do |f| %
Which caused my comment form to finally work successfully, however the
following code now fails (this is my comment
I'm working on a into rails project in parallel with a book I'm reading.
I have 3 models/controllers that I'm trying to get to interact properly:
user, article, comment
Each article can have many comments, each comment is made by 1 user.
Currently I'm able to get the article to show the comment
Douglas Lovell wrote in post #1071218:
Steve:
Assuming your many comments to one user relation is set-up properly, ask
for cu = comment.user. Then %= cu.username % will work for you.
Doug
Douglas Lovell
www.wbreeze.com
Worked perfectly, thank you! :)
--
Posted via http://www.ruby
/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/home/steve/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sm/pkg/active/bin:/sm/pkg/active/sbin:/home/steve/.rvm/bin:
No such file or directory
I am still learning Rails, I've read some books and did some hands on at
codeschool.com and now I'm trying to write my first simple app from
scratch.
I'm using devise for authentication, but since i still kinda suck at
rails, I haven't gotten email confirmation working so currently, for
testing
Thanks for pointing me to @pets = admin.pets.all but now I'm getting the
error
ActiveRecord::StatementInvalid in PetsController#index
SQLite3::SQLException: no such column: pets.admin_id: SELECT
pets.* FROM pets WHERE (pets.admin_id = 1)
Rails.root:
Hello Jeremy, thanks for providing me your experience and quick
response!
Here is my migration, sorry for being such a newb
[loluser@fedora migrate]$ cat 20120527225053_create_pets.rb
class CreatePets ActiveRecord::Migration
belongs_to :admin
def self.up
create_table :pets do |t|
Very strange problem: Ton's of ruby process just running simple
command rails --version or rails new test1
. I try to run this simple command
rails new test1 -- this suppose to be create a new rails site.
rails --version -- even this I got ton's of ruby process
--
You received this message
OS install
and here is the reference
https://gist.github.com/1722825
robinhood:junk89 steve$ cat ~/.railsrc
cat: /Users/steve/.railsrc: No such file or directory
robinhood:junk89 steve$ rvm current
ruby-1.9.3-preview1@new_rails
robinhood:junk89 steve$ rvm gemdir
/Users
Hi Peter,
You really deserve the MEDAL of HONOR in helping ways to solve these.
So far, it still not able to pass that ton's of ruby process problems.
https://gist.github.com/1723620
At least now, I know i have old rvm and be able to update it already.
Seems like there already several test to
Thanks Peter,
Since I have machine to experiment with, in the near future, I might
reinstall from fresh. In the past, this machine (Mac Book Pro and
MacMini), Ruby on Rails with that simple statement work.
but somehow, don't know what cause it and when it happen and why it
happen, suddenly
Very strange problem: Ton's of ruby process just running simple command
rails --version or rails new test1
I have very strange problem. I try to run this simple command
rails new test1 -- this suppose to be create a new rails site.
rails --version -- even this I got ton's of ruby process
Colin Law wrote in post #1043562:
No idea why but in the quest for more information, do you get any
errors? Does the command work?
Colin
The command is not working and no error.
Just simple commands below, it just hang there until i pressed control c
rails --version
rails new test1
I am
Thanks Peter, for excellent way to troubleshoot it.
here is the ouput
https://gist.github.com/1721589
in summary below
robinhood:~ steve$ cat ~/.railsrc
cat: /Users/steve/.railsrc: No such file or directory
robinhood:~ steve$ rvm current
ruby-1.9.2-p290@rails3
robinhood:~ steve$ rvm gemdir
Hi Everyone,
I just found this forum today and I'm having trouble with a rails
tutorial I'm working on. On all other rails console commands it runs
when I hit enter such as:
subject.new_record?
= true
However when I try to save a record using:
subject = Subject.new(:name = First Subject,
wow. The quote was the issue. Unbelievable. Thanks. I'm back to cranking
out this tutorial
--
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
This is a heck of a lot easier to do in the presentation than the style.
Consider this:
body
.red
background-color: red
.green
background-color: green
body class=%= @theme_main_color %
Stuff inside
/div
In your controller (or application controller), simply set @theme_main_color
can use. ;-)
Once I've got this latest part working, I'll make the sources available on
GitHub along with the data in MySQL format.
-- Steve
s...@comcast.net
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
when I replied.
If something comes up, please let me know -- I'm happy to look at interesting
work!
Regards,
Steve Ross
On Mar 26, 2011, at 1:20 PM, Bill Walton wrote:
Hi Steve,
Thanks for asking. I've engaged someone who I think is going to work
out. If not, I'll give you a shout
Any luck with this, Bill? I might be able to do it if the specifics are right...
Steve Ross
On Feb 28, 2011, at 7:12 AM, Bill Walton wrote:
I have a short-term contract position opening for a technical writer.
The position is telecommute and is probably a week to 2 weeks worth of
work
I am developing a social media site for healthcare and would like to
hire a contractor in Chicago to build my site- Healthcare Social Media
site for 1.0.
Please respond with healthcare sites and level of ability and hourly
or fixed rates.
--
You received this message because you are subscribed
On 2 February 2011 15:47, Mauro mrsan...@gmail.com wrote:
On 2 February 2011 15:43, Ahmy Yulrizka ahmy...@gmail.com wrote:
I hope that textmate have breakpoint and debugging like netbeans
Netbeans rails support is discontinued? Ok, I've destroyed netbeans from my
pc.
Eh? Why? It's not like
Hi there
Would like to know if anything exists, specifically designed and built
to work with Rails, for UI development? Something akin to Google Web
Toolkit (GWT)?
Thanks
Steve
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
On 27 January 2011 16:29, Michael Pavling pavl...@gmail.com wrote:
On 27 January 2011 16:25, Fred Ballard fredb...@gmail.com wrote:
On Thu, Jan 27, 2011 at 10:23 AM, Michael Pavling pavl...@gmail.com
wrote:
http://netbeans.org/community/news/show/1507.html
Messed up on their part.
I
Hey. This isn't a terrible thing to undertake but there's not so much
information available. I wrote a couple of blog posts about the
subject of receiving
email(http://steve.dynedge.co.uk/2010/09/07/incoming-email-in-rails-3-choosing-the-right-approach/)
and testing
substituted properly. Anyone have any ideas?
Thanks!
Steve
--
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
rubyonrails-talk
if it's the adding of cr/lf, try scite - it has the ability to specify and
convert eol to and from cr, cr/lf, or lf. A bit of a pain to do manually,
but I dn't know how to do automatically.
On 6 December 2010 18:45, Julien julien.ap...@gmail.com wrote:
On 6 déc, 15:28, Julien
Great Post.I like the link.Now expecting some good ideas from your
upcoming post
http://www.dealsourcedirect.com/ion-tape2pc.html
--
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
Great Post.I like the link.Now expecting some good ideas from your
upcoming post
http://www.dealsourcedirect.com/ion-tape2pc.html
--
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
hi its seems like you have done a hard work on it. I have got lots of
information from your post. Really appreciate your work.!! It was
describe very nicely keep us doing good work..
http://www.dealsourcedirect.com/ion-tape2pc.html
--
Posted via http://www.ruby-forum.com/.
--
You received
hi its seems like you have done a hard work on it. I have got lots of
information from your post. Really appreciate your work.!! It was
describe very nicely keep us doing good work..
http://www.dealsourcedirect.com/ion-tape2pc.html
--
Posted via http://www.ruby-forum.com/.
--
You received
I really enjoyed the article. It proved to be Very helpful to me and I
am sure to all the comment here!
http://www.dealsourcedirect.com/ion-tape2pc.html
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Great Post.I like the link.Now expecting some good ideas from your
upcoming post
http://www.dealsourcedirect.com/ion-tape2pc.html
--
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
hi its seems like you have done a hard work on it. I have got lots of
information from your post. Really appreciate your work.!! It was
describe very nicely keep us doing good work..
http://www.dealsourcedirect.com/ion-tape2pc.html
--
Posted via http://www.ruby-forum.com/.
--
You received
I really enjoyed the article. It proved to be Very helpful to me and I
am sure to all the comment here!
http://www.dealsourcedirect.com/ion-tape2pc.html
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
OK. I now know why this is happening but I don't know what to do to fix
it...
in the app folder is a file store.rb and this contains the following
lines...
ActiveRecord::Base.establish_connection(
:adapter = 'sqlite3',
:database = 'db/development.sqlite3')
It is these lines that are
Colin Law wrote in post #964785:
To quote from your OP
And a search of my project shows no files containing any reference to
sqlite3.
What can I say? Windows 7 search is not too good. It brought up files
that mentioned the target words in comments but it did not bring up this
particular
A bit more of the code - to clarify the origin...
#---
# Excerpted from Agile Web Development with Rails, 4rd Ed.,
# published by The Pragmatic Bookshelf.
# Copyrights apply to this code. It may not be used to create training
material,
# courses, books, articles, and the like. Contact us if you
Colin Law wrote in post #964799:
I seriously suggest considering switching to Ubuntu (or similar). You
would not regret it...
I am doing the tutorials in parallel on Ubuntu. Unfortunately the test
functionals issue I mentioned above that started me down this path
occurs there too.
My
Hassan Schroeder wrote in post #964802:
On Mon, Nov 29, 2010 at 8:35 AM, Steve Mills li...@ruby-forum.com
wrote:
A bit more of the code - to clarify the origin...
utterly irrrelevant.
:database = 'db/development.mysql2')
The line above is *wrong* -- look at your config/database.yml
Marnen Laibow-Koser wrote in post #964825:
Your development environment is no concern of your customers. What do
you mean by that's what my customers want? Why do you think you need
to work on Windows? Remember, you're developing *server-side*
applications here that have nothing to do with
Hassan Schroeder wrote in post #964823:
On Mon, Nov 29, 2010 at 9:48 AM, Steve Mills li...@ruby-forum.com
wrote:
The line above is *wrong* -- look at your config/database.yml entries
and compare. That is simply not a valid MySQL entry.
I know that line is wrong - Rails tells me that - what
Hassan Schroeder wrote in post #964841:
On Mon, Nov 29, 2010 at 10:42 AM, Steve Mills li...@ruby-forum.com
wrote:
Clearly what is required is a single parameter which specifies the
database, something like, localhost:uname@pw/depot_v_development
Uh, clearly? Actually, clearly that's
I really enjoyed the article. It proved to be Very helpful to me and I
am sure to all the comment here!
http://www.dealsourcedirect.com/toy-story-lamp.html
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails:
hi its seems like you have done a hard work on it. I have got lots of
information from your post. Really appreciate your work.!! It was
describe very nicely keep us doing good work..
www.dealsourcedirect.com/toy-story-lamp.html
--
Posted via http://www.ruby-forum.com/.
--
You received this
Luciano Sousa wrote in post #963876:
post your rake db:migrate --trace...
Done. http://pastie.org/1325873
Kind Regards
Steve
--
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
There are many threads showing the error...
no such file to load -- sqlite3
BUT they are all reported by people using sqlite3 wherease I am using
mysql2.
My gemfile clearly says mysql2. My database.yml file definitely only has
mysql2 configuration in it. And a search of my project shows no
Colin Law wrote in post #963675:
It might be worth posting the complete output from the rake command
with --trace specified.
Also which Rails are you using? Which OS?
Is this a new install and this is your first app?
Output from gem list.
Colin
Hmmm. I forgot a lot of clues there didn't
Steve Mills wrote in post #963677:
I'm in the midst of wiping the DEPOT version v and setting it up
again. Version g for example doesn't have this problem.
Will report back in 10 mins or so on whether setting it all up again
worked or changed anything.
That didn't make any difference
Alexandr Kim wrote in post #960797:
just remove rake.gemspec and it will work. It worked for me at least.
http://rubyforge.org/forum/forum.php?thread_id=48830forum_id=37643
Thanks for the tip - it worked!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
On 9 November 2010 23:39, Filippos filippos...@gmail.com wrote:
Hello there dear Ruby on Rails experts.
I decided to dive into the world of web development and Ruby on Rails
is my cutting-edge choice for developing and deploying webapps.
Unfortunately i can not find any book to help and
to go that path.
Didn't know you could add errors to the object. I know now more than I
did yesterday.
Steve
--
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
or
rolled back?
Steve
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails
On 3 November 2010 17:52, Ruby Me li...@ruby-forum.com wrote:
Hi everyone,
I would like to ask you why should I use Ruby on Rails? And I have a
silly question hope I can answer it, is it true that the creators of
ruby on Rails are gay? I've just read that and want to make sure.
People on
On Oct 20, 2010, at 11:34 PM, Ishit Parikh wrote:
I want test case in rspec for:
@drugs = Drug.where('drug_category_id = ?', params[:id])
Has anybody idea about it?
describe Drug
it should really be posted to the rSpec Google Group :)
it would be helpful for you to read the Prag.
On Oct 21, 2010, at 1:48 PM, Robert Walker wrote:
Steve Ross wrote in post #956143:
On Oct 20, 2010, at 11:34 PM, Ishit Parikh wrote:
I want test case in rspec for:
@drugs = Drug.where('drug_category_id = ?', params[:id])
Assuming this line is in a controller action...
it find Drugs
Hi Kevin.
In the end I uninstalled Ruby 1.9.2 and installed version 1.9.1 and the
problem went away.
Kind Regards
Steve
--
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
there.
There are patches available to fix it but the authors assume that we all
know how to apply a patch whereas newbies like myself haven't a clue -
yes we can download the patch, but we don't know how to apply it.
Any hints? :)
Kind Regards
Steve
--
Posted via http://www.ruby-forum.com/.
--
You received
Marnen Laibow-Koser wrote in post #955209:
Steve Mills wrote in post #955200:
[...]
If you can point me to a patch you've found, I may be
able to be of more help.
Thanks - I'm working both in Windows and Ubuntu - but Windows primarily
because that's where my Development Environment
P.S. I should also have mentioned I'm working with RubyMine to learn how
to build Rails web apps.
--
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
The content was...
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 266d717..0e9f39a 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do
version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~
s}} or next
version =
interest in
it.
Thanks very much for persisting with this issue and pushing me in the
right direction :)
Kind Regards
Steve
--
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
is spread thin along many platforms at this particular time.
You have invested quite a bit of time in this reply, and I thank you for
that.
Kind Regards
Steve
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
Parent
has_many :children
scope :primary, where(:role = 'primary')
Or something like that. The syntax of scope, or named_scope differs depending
on the version of Rails, but you get the idea... You'll probably want to add
code to make sure that only one child has the primary role for a
no idea.
I am an experienced and seasoned developer but totally new to Ruby.
Any help gratefully accepted.
Kind Regards
Steve
--
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
EXECUTABLE: C:/Ruby192/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby192/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Ruby192/lib/ruby/gems/1.9.1
- C:/Users/Steve/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources = true
- :verbose = true
I have a legacy database that was designed to work with Hibernate. I
have the following class hierachry:
class Status ActiveRecord::Base
class ItemStatus Status
set_inheritance_column :item_type
class MediaItemStatus Status
set_inheritance_column :item_type
My issue is that the
Typically your show action does not allow for user input. The edit action does.
In any case, is there a classified/edit.erb and if you are trying to render it,
then it implies that the update failed. Do you know why?
On Sep 19, 2010, at 11:03 AM, Faisal Basha wrote:
Iam trying to build a
For comparison, from typing script/server to having a running instance
of mongrel hosting out a rails app on my machine takes ~2 seconds.
--
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 23 July 2010 21:47, Greg Donald gdon...@gmail.com wrote:
On Fri, Jul 23, 2010 at 3:23 PM, Marnen Laibow-Koser
li...@ruby-forum.com wrote:
If name-calling is the best you can do, please don't bother.
Truth hurts.
--
Greg Donald
destiney.com | gregdonald.com
--
You received this
On 21 July, 08:08, Frederick Cheung frederick.che...@gmail.com
wrote:
On Jul 20, 9:31 pm, Steve Root ukr...@gmail.com wrote:
If I save that to a regular string I get what looks correct to me:
2010-07-20 11:49:19
but saved in the entrycreated column it outputs as: Sat Jan 01
11:49:19 UTC
On 20 July 2010 16:42, Dries steenhouwer.dr...@gmail.com wrote:
Somebody who think it's possible?
Yes
--
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
to save this datetime
correctly pleased.
In case it's relevant, on my dev machine I have sqlite. Eventually it
will be on mysql.
Thanks for any help,
Steve
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email
1 - 100 of 285 matches
Mail list logo