similar to: How do I destroy all the posts when the board is destroyed?

Displaying 20 results from an estimated 1000 matches similar to: "How do I destroy all the posts when the board is destroyed?"

2011 Jan 08
6
Need help in Installing Rails 3.0.3
This is my gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [i686-linux] - INSTALLATION DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136 - RUBY EXECUTABLE: /home/arjunkishore/.rvm/rubies/ruby-1.9.2-p136/bin/ruby - EXECUTABLE DIRECTORY: /home/arjunkishore/.rvm/gems/ruby-1.9.2-p136/bin - RUBYGEMS PLATFORMS: - ruby -
2011 Nov 15
4
Need some guidance on running shell commands from my app..
During execution in my Rails web app, I need to create a virtual host config on my Linux server, but I don''t know what would be the best way to do it , here are the steps ( my_domain.com is fixed, only my_subdomain is changing dynamically 1- create: /var/www/vhosts/my_domain.com/subdomains/my_subdomain/conf/ vhost.conf ServerName mysubdomain.mydomain.com .. content is always the
2012 Nov 14
8
right click or Context Menu in ruby without javascript
Hi, This query is a replica of the link http://railsforum.com/viewtopic.php?id=51231. As I was unable to get any replies from the rails forum, I am posting the same here. I have developed an app using Rails 3. I have a table made to look like a calendar. I wanted to know if there were any methods or gems to acheive right click(context menu) action on the dates WITHOUT javascripts or
2011 Feb 14
4
Begining with RoR, litle questions
Hello, First, sorry about my english. I come from lamp+symfony world, i understand the MVC design and so on... my questions... 1. Should learn ruby 100% before entering the documentation for RoR? 2. Works with apache as module? 3. What about DB abstraction? something similar to PDO in php? Appreciate a few links in addition to the official. In short, a little guidance of where to start PD:
2012 Oct 10
8
link_to with additional data
Hi, rails 3.2.8 I must be missing something basic (and it''s been driving me mad) because I am trying to send one additional data attribute to my controller from a link, but I can''t seem to get it into the params received by the controller. I have looked around and found answers, but none seem to affect my links. I''ve set up a dummy app with a home page and a single
2012 Nov 01
2
SyntaxError in Posts#index
getting this error compile error /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:5: syntax error, unexpected ''='' ...w Goal", new_post_path, class="btn btn-success" );@output_bu... ^ /Users/bradwrage/webapps/blog/app/views/posts/index.html.erb:7: syntax error, unexpected kDO_BLOCK, expecting kEND ''); @posts.each
2012 Oct 27
7
Photo Paperclip::CommandNotFoundError
Hi all, I am using paperclip plugin. when i am trying to upload photo i am getting this error " Photo Paperclip::CommandNotFoundError " and i am getting this error on my server production mode. if i run on development mode on my server i can able to upload the pic. why this is happening i have no idea. can any help me out. Cheers, Kp -- You received this message because
2013 Jun 02
16
Ruby 2.0 is running, but Rails 4 doesn't see it.
What am I doing wrong?? ****@ubuntu:~/ruby/things_i_bought$ rake db:migrate Rails 4 prefers to run on Ruby 2.0. You''re running ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] Please upgrade to Ruby 1.9.3 or newer to continue. ****@ubuntu:~/ruby/things_i_bought$ ruby -v ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux] ****@ubuntu:~/ruby/things_i_bought$ rvm
2012 Sep 20
6
Good books about the internals of Rails 3
Hi, I''m a new RoR and Ruby developer and I''m searching for some good resources (books or website) that go a little further than books like the railstutorial (which is excellent btw). But after reading this, I feel like as long as I''m working with scaffolding and simple gems, it''s ok, and a lot can be accomplished with this but I would like to have a deeper
2009 Sep 12
3
Need help on Many to Many Relationships
Hi, Does anyone know where I can find a full step by step tutorial on Many to Many Relationships with Rails or can describe the steps in inserting data into the join tables, displaying the connections, etc.. - I don''t only need the model, but all the steps that you would use in the MVC architecture to make it work. I am a new to Rails and I cannot find a complete tutorial on all the
2013 May 31
11
A simple javascript alert not working
If I have a file in view /test called index.js.erb and in it a simple alert("hello") shouldn''t that run when I go to /test/index? It doesn''t. -- 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 unsubscribe from this group and stop receiving emails from it,
2013 May 22
3
rails 4, active record: appending to has_many :through does not create join model anymore?
hi folks. on rails 4, can somebody confirm that pushing model instances onto a has_many :through relation does not create the necessary join model anymore? class Reader < AR::Base belongs_to :post belongs_to :person end class Post < AR::Base has_many :readers has_many :people, through: :readers end @post.people << Person.new so,
2012 Jun 30
4
find_by_sql and join
hi I amd tanizawa. I had problem. I can not get main.name value from below sql. "find_by_sql ''select main.id,main.name,sub.name from main left join sub on sub.id = main.id''" Please teach me how to get borth name value. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the
2009 May 12
2
STI good or bad for my problem?
Hi. I am currently developing a small course system for student and teachers. The system is divided in sections and sections have many messages, comments, documents and schedules. Pretty easy to set up using ROR, just add some belongs_to and has_many relations. But everything becomes much more complicated when the section items (message, comment and so on...) all has comments. And they can also be
2008 Mar 12
1
ftable and xtabs
Hoping someone can help me with xtabs and ftable. I'm trying to get a pair of ftables (possibly more) next to each other. For example: > dunhill_lights_xtab<-ftable(xtabs(grossedupobs ~ gender+age_group + dunhill_lights, data = ciggs)) > dunhill_lights_xtab dunhill_lights No Yes gender age_group Female
2012 Dec 25
3
ERROR : An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
I am a php programmer, learning ruby on rails I am using ubuntu 10.10. i am not so fine with linux. i have installed ruby, gems etc. I want to make app with using mysql. I have used *$ rails new clogs_web_app -d mysql* to make app but the process stops with this statement *Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.* it give me error : * An error occurred
2011 Jun 30
13
Rails Installer Problem
Hello. Thanks to all who made the rails installer possible. I''m going through the video tutorial and am stuck at point 7:00 where we''re adding to github. Everything went smoothly up to that point. C:\Sites\ridemo>git add . fatal: Not a git repository (or any of the parent directories): .git What to do? Thanks in advance, Dan -- You received this message because you are
2013 Nov 30
1
Need good tutorial on ActiveRecord associations
Hi, I am very new to rails.. I am having hard times to understand the ActiveRecord associations.. I tried http://guides.rubyonrails.org/association_basics.html .. But it is not for beginners. :) Is there any good tutorials, to understand the concept? Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on
2013 May 22
2
Is command line Rails also so slow on Linuxes as it is on Windows?
There is a lot of questions on Stackoverflow about how Rails is slow in command line on Windows machines. I use Windows and know that it is true. All Rake tasks, all rails commands are very slow. Especially testing is slow. I can''t test my code as I want because of it. But some people in their answers say that command line Rails is slow only on Windows. On Linuxes it is ok. But before I
2011 Aug 12
1
Getting nil value when setting an on Join model via a has_many :through relationship
Hi All, I''ve been trying to figure out what''s wrong here for a little over a day and figured i''d reach out to the ROR list. A pastie explains the code a bit better than directly in email: http://pastie.org/private/mvu0zr1xm18bsk6nfbyama Basically i have an Artist, and he has many Songs through a join model called Releases. An artist can be "featured" on a