Re: [Rails] Re: Missing template projects/index, application/index ?

2012-09-24 Thread KUL KING
Please double check the name. It should be *index.html.erb *not * index.html.rb* as you said. On Tue, Sep 25, 2012 at 11:00 AM, wragen22 wrote: > here is what is in my routes > > Ticketee::Application.routes.draw do > root :to => "projects#index" > end > > As for the html view... i assumed my

Re: [Rails] Re: Missing template projects/index, application/index ?

2012-09-24 Thread wragen22
here is what is in my routes Ticketee::Application.routes.draw do root :to => "projects#index" end As for the html view... i assumed my index.html.rb was just fine? On Monday, September 24, 2012 10:48:25 PM UTC-7, Kashif Umair Liaqat wrote: > > Are you sure that there is an HTML view as well i

Re: [Rails] Re: Missing template projects/index, application/index ?

2012-09-24 Thread KUL KING
Are you sure that there is an HTML view as well in this directory " Users/bradwrage/webapps/ticketee/app/views"? On Tue, Sep 25, 2012 at 9:32 AM, wragen22 wrote: > Man..still can't figure this out.. > > > On Sunday, September 23, 2012 2:32:48 PM UTC-7, wragen22 wrote: >> >> anybody? >> >> On Sat

Re: [Rails] Rails 3 routes

2012-09-24 Thread KUL KING
You can use the resources keyword. On Tue, Sep 25, 2012 at 10:35 AM, keerthi priya < emailtokeerthipr...@gmail.com> wrote: > Hi all am learning rails 3.2.8 and i found that in routes if i have a > controller called User and i have 5 def a, def b,def c and def d. do i need > to mention routes to e

[Rails] Rails 3 routes

2012-09-24 Thread keerthi priya
Hi all am learning rails 3.2.8 and i found that in routes if i have a controller called User and i have 5 def a, def b,def c and def d. do i need to mention routes to each def because in 2.3.8 you no need to mention routes for each def but when i come to 3.2.8 i have to mention routes for each

Re: [Rails] Re: Missing template projects/index, application/index ?

2012-09-24 Thread Norbert Melzer
Please show us your complete routes.rb without comments and the output of "ls app/views/projects", the contents of your ProjectsController could help as well. Am 23.09.2012 23:32 schrieb "wragen22" : > anybody? > > On Saturday, September 22, 2012 5:38:27 PM UTC-7, wragen22 wrote: >> >> Getting thi

[Rails] Re: Missing template projects/index, application/index ?

2012-09-24 Thread wragen22
Man..still can't figure this out.. On Sunday, September 23, 2012 2:32:48 PM UTC-7, wragen22 wrote: > > anybody? > > On Saturday, September 22, 2012 5:38:27 PM UTC-7, wragen22 wrote: >> >> Getting this issue...even though I have my views there in both the >> projects and application. Also getting

Re: [Rails] Insert multiple datasets - one form

2012-09-24 Thread David Angga
Hi Werner, my dirty solution :) <%= f.input :prio, :as => :hidden %> <%= radio_button_tag :prio_tmp, 1, :onclick => "updatePrioHiddenValue(this.value)" %> <%= radio_button_tag :prio_tmp, 2, :onclick => "updatePrioHiddenValue(this.value)" %> .. .. using javascript function to update the :prio

[Rails] Re: User & Profile w/ Devise

2012-09-24 Thread jason baguio
jason baguio wrote in post #1077357: > KUL KING wrote in post #1077336: >> Have you checked that profile id is being passed in params[:id]? > > How ought I check this? I changed changed the application_controller.rb to: class ApplicationController < ActionController::Base def after_sign_in_pa

[Rails] Re: User & Profile w/ Devise

2012-09-24 Thread jason baguio
KUL KING wrote in post #1077336: > Have you checked that profile id is being passed in params[:id]? How ought I check this? -- 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

[Rails] Re: Problem setting log level

2012-09-24 Thread Daniel Sundqvist
Yes it is set to true. It seems like this is the default behavior on my rails installation. I did a test: i created a new rails project, generated a scaffold model, inserted a faulty link_to helper like: <%= link_to 'bogus', some_bogus_non_existing_path %> in one of the views. I start the developme

Re: [Rails] Internationalization Example Sites including Arabic and Chinese

2012-09-24 Thread Walter McGinnis
http://Chinesecommunity.org.nz On Sep 25, 2012, at 5:49 AM, Muruga wrote: > Hi >Look Design Sales Site http://eu.fab.com in both german and english. > > On Mon, Sep 24, 2012 at 2:25 PM, mikej wrote: > I am looking into building a site using multiple languages. I would like to > show

Re: [Rails] Problem setting log level

2012-09-24 Thread Walter Lee Davis
On Sep 24, 2012, at 2:20 PM, Daniel Sundqvist wrote: > walterdavis: "We're sorry, but something went wrong" is the error > message i get. When i start the development server i see "Rails 3.2.8 > application starting in development on http://0.0.0.0:3000";. > log/development.log is the logfile

[Rails] Re: Problem setting log level

2012-09-24 Thread Daniel Sundqvist
walterdavis: "We're sorry, but something went wrong" is the error message i get. When i start the development server i see "Rails 3.2.8 application starting in development on http://0.0.0.0:3000";. log/development.log is the logfile that is used. Seems to me that i'm in development mode. I hav

[Rails] Ruby on Rails salaries in Berlin?

2012-09-24 Thread powi
Hello all. I'm living in Spain, and I'm offered a job in a Berlin IT company as a Rails developer. I'm considered a junior developer (almost 1 year experience) but I think I'm pretty good for this time. I would like to ask what would be considered a good salary for such a position. I mean, wh

Re: [Rails] Internationalization Example Sites including Arabic and Chinese

2012-09-24 Thread Muruga
Hi Look Design Sales Site http://eu.fab.com in both german and english. On Mon, Sep 24, 2012 at 2:25 PM, mikej wrote: > I am looking into building a site using multiple languages. I would like > to show other stakeholders how this could look. > > Does anyone know of any publicly accessible

Re: [Rails] Re: Email with out SMTP Settings is it possible

2012-09-24 Thread KUL KING
That's great. I didn't know about how SMTP works. Thanks for your demonstration :) On Mon, Sep 24, 2012 at 9:24 PM, Tim Slattery wrote: > KUL KING wrote: > > >So I was right that we have to use SMTP to send email. Whether it is from > >localhost or gmail. Am I right? > > SMTP = Simple Mail Tran

Re: [Rails] Re: how to get effects from test database to development database

2012-09-24 Thread Norbert Melzer
2012/9/22 Fahim Patel : > rake db:migrate:reset # what this command will do ? What would you guess? What says ´rake -T´? What is google telling you? OK, last but not least: It does what it says… It is resetting the database of your current environment by dropping all tables and running all mig

Re: [Rails] User & Profile w/ Devise

2012-09-24 Thread KUL KING
Have you checked that profile id is being passed in params[:id]? On Mon, Sep 24, 2012 at 10:18 PM, jason baguio wrote: > I am using Devise and am trying to allow each user to create 1 profile > (they can currently make many). I am able to send the the newly > registered user to the page where t

[Rails] User & Profile w/ Devise

2012-09-24 Thread jason baguio
I am using Devise and am trying to allow each user to create 1 profile (they can currently make many). I am able to send the the newly registered user to the page where they can create a profile, but when the User logs in it will not go to the Profile Show page - the error message is (Couldn't fi

[Rails] Re: undefined method `to_sym' for nil:NilClass

2012-09-24 Thread Shandy Nantz
That was it exactly! Sorry it took me so long to reply, I had some fires that needed to be stomped out. Thanks again, -S -- 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,

[Rails] Re: Email with out SMTP Settings is it possible

2012-09-24 Thread Tim Slattery
KUL KING wrote: >So I was right that we have to use SMTP to send email. Whether it is from >localhost or gmail. Am I right? SMTP = Simple Mail Transfer Protocol. That's the language you use to talk to another computer to send mail. Usually, you talk to a server whose job is to take mail from you

Re: [Rails] Email with out SMTP Settings is it possible

2012-09-24 Thread Walter Lee Davis
On Sep 24, 2012, at 9:51 AM, KUL KING wrote: > So I was right that we have to use SMTP to send email. Whether it is from > localhost or gmail. Am I right? Yes, that acronym stands for Simple Mail Transport Protocol. It's one of the oldest protocols on the Internet -- precedes the Web by tens o

Re: [Rails] Email with out SMTP Settings is it possible

2012-09-24 Thread KUL KING
So I was right that we have to use SMTP to send email. Whether it is from localhost or gmail. Am I right? On Mon, Sep 24, 2012 at 6:49 PM, Walter Lee Davis wrote: > > On Sep 24, 2012, at 9:14 AM, KUL KING wrote: > > > Doesn't SendMail use SMTP? > > Technically, all outgoing mail is handled by SMT

Re: [Rails] Email with out SMTP Settings is it possible

2012-09-24 Thread Walter Lee Davis
On Sep 24, 2012, at 9:14 AM, KUL KING wrote: > Doesn't SendMail use SMTP? Technically, all outgoing mail is handled by SMTP. That's just the mail sending protocol. The issue here is whether that SMTP server is localhost (sendmail or another drop-in replacement for that service, running on the

Re: [Rails] Email with out SMTP Settings is it possible

2012-09-24 Thread KUL KING
Doesn't SendMail use SMTP? On Mon, Sep 24, 2012 at 6:11 PM, Fabian Becker wrote: > Yes it is: > http://raflabs.com/blogs/silence-is-foo/2011/02/07/configuring-rails-3s-actionmailer-work-sendmail-debian/ > > > > On Mon, Sep 24, 2012 at 3:09 PM, KUL KING wrote: > >> No it is not possible. >> >> >>

Re: [Rails] Email with out SMTP Settings is it possible

2012-09-24 Thread Fabian Becker
Yes it is: http://raflabs.com/blogs/silence-is-foo/2011/02/07/configuring-rails-3s-actionmailer-work-sendmail-debian/ On Mon, Sep 24, 2012 at 3:09 PM, KUL KING wrote: > No it is not possible. > > > On Mon, Sep 24, 2012 at 6:08 PM, honey ruby wrote: > >> Hi all can we send mails with out using S

[Rails] Insert multiple datasets - one form

2012-09-24 Thread Werner
Hello.. I have a form: <%= form_for @instruction_user, :url => some_path do |f|%> <% @users.each do |user| %> <%= user.name %> <%= f.input :prio, collection: 1..5, :as => :radio_buttons%> <%= f.text_field :remark%> <%= check_box_tag "instruction_user_ids[]", "#{user.id}" %> controller: if

Re: [Rails] Email with out SMTP Settings is it possible

2012-09-24 Thread KUL KING
No it is not possible. On Mon, Sep 24, 2012 at 6:08 PM, honey ruby wrote: > Hi all can we send mails with out using SMTP settings. i want to send > mails with out smtp is it possible? > > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "Ruby

[Rails] Email with out SMTP Settings is it possible

2012-09-24 Thread honey ruby
Hi all can we send mails with out using SMTP settings. i want to send mails with out smtp is it possible? Thanks in advance -- 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-talk@googlegrou

[Rails] Re: How to do this ?

2012-09-24 Thread Kashif Umair Liaqat
I don't have specific tutorials to follow. Google is your best companion for this purpose. If you can share some of your code then I can help you to take a start. On Monday, September 24, 2012 5:09:53 PM UTC+5, Fahim Patel wrote: > > can i get tutorial and help ful links .. > I wish use both jav

[Rails] Re: How to do this ?

2012-09-24 Thread Fahim Patel
can i get tutorial and help ful links .. I wish use both javascript and Ajax.. On Monday, September 24, 2012 5:31:33 PM UTC+5:30, Fahim Patel wrote: > > > > I wish to select one value from drop down and second drop down should > shows those values which are related to that selected value > fro

[Rails] Re: Deactivating a user token

2012-09-24 Thread Kashif Umair Liaqat
If the token is saved in User table then you should do this. str = "Hello, your account has been deactivated. To reactivate your account please click on the link below. http://mysite.com/activate?token=#{User.find_by_id(@user.id).token}" Then you can send the str in email. On Monday, September

[Rails] Re: How to do this ?

2012-09-24 Thread Kashif Umair Liaqat
It should be done using javascript. Or if you want to get the values of second dropdown from server then you have to use AJAX. On Monday, September 24, 2012 5:01:33 PM UTC+5, Fahim Patel wrote: > > > > I wish to select one value from drop down and second drop down should > shows those values whi

Re: [Rails] How to do this ?

2012-09-24 Thread KUL KING
It should be done using javascript. Or if you want to get the values of second dropdown from server then you have to use AJAX. On Mon, Sep 24, 2012 at 5:01 PM, Fahim Patel wrote: > > > I wish to select one value from drop down and second drop down should > shows those values which are related to

[Rails] How to do this ?

2012-09-24 Thread Fahim Patel
I wish to select one value from drop down and second drop down should shows those values which are related to that selected value from first drop down. It should be dynamic ? Did i have to use Ajax ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rai

[Rails] Deactivating a user token

2012-09-24 Thread Avi
Hello All, I have an Admin user, who can see list of users. He can activate or deactivate users. While deactivating a user I should send a mail along with activation link to the user. The activation link should be a token which onclick it will activate the account of the user. While creating

Re: [Rails] The auto_html gem is not working

2012-09-24 Thread Norbert Melzer
You have to include ruby gems first as far as I can remember. Am 24.09.2012 10:46 schrieb "prateek papriwal" : > I have installed auto_html gem on my system but i am not able to run any > example . > > When i do > > >> include AutoHtml > > it gives an error > > NameError: uninitialized constant Au

[Rails] Internationalization Example Sites including Arabic and Chinese

2012-09-24 Thread mikej
I am looking into building a site using multiple languages. I would like to show other stakeholders how this could look. Does anyone know of any publicly accessible sites showing multiple languages? I would ideally like to see a separate sub domain for each language and see Arabic and Chin

[Rails] The auto_html gem is not working

2012-09-24 Thread prateek papriwal
I have installed auto_html gem on my system but i am not able to run any example . When i do >> include AutoHtml it gives an error NameError: uninitialized constant AutoHtml from (irb):1 from /home/papri/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in `' I would like to know the proper procedure

[Rails] Beautiful Rails Project in search of evangelist coders - 95% complete

2012-09-24 Thread Mark Michael Lewis
http://BestDebates.com - 3 minute video description here: http://bestdebates.com/support/page/1_Introduction 2 years of work went into this site, then the owner closed the project/company 3 days before the big launch campaign/contest (a medical marijuana debate with a prize of $500 in medical

Re: [Rails] What is the alternative of "ruby script/server" in Rails 3.2.8?

2012-09-24 Thread Norbert Melzer
That tutorial seems to be somewhat inconsistent, since rails new is only possible since that day that made script /server obsolet. Am 19.08.2012 09:58 schrieb "Rubyist Rohit" : > I created new application skeleton using: > > rails new DemoApp. > > Now my books says to run command: > > ruby script/