[Rails] how named routes work ?

2013-04-16 Thread siva kumar
I've been analysing a rails project where it has routes.rb like routes.rb : map.connect '/sessions/remote_create', :controller = '/sessions', :action = 'remote_create' map.resources :users, :sessions, :unfiled_documents, :appointments, :searches, :pat_ratio map.login '/login', :controller

[Rails] Rough sketch for a website

2013-04-16 Thread Jussi Hirvi
I have waded through the Rails Tutorial book (for Rails 3.2). I still am a Rails newbie, but have experience with other languages. Now I need to put together a biggish website for a book publisher. It will include the web store (with hopefully rich materials for each book), and a multi-user

[Rails] Re: Fail to pass id to foreign table

2013-04-16 Thread Ryo Saeba
All right, thanks for pointing that out. I simply used %= debug @review % in my new-View of the reviews controller. Revieweing a game works by clicking on the review button in game#show. So having %= debug @review % in game#show, game_id receives it's proper id, but once I open the new Form

[Rails] MyApp/lib/ directory: How to deal with it?

2013-04-16 Thread Wins Lin
The Guide says about /lib directory: lib/ Extended modules for your application. Somewhere I read that I could place there my custom email validator class. But how to use it then? How to require it? Now I do this way in my create method: def create require myEmailValidator

[Rails] Re: how named routes work ?

2013-04-16 Thread me
The route specified as: map.home '/', :controller = '/sessions', :action = 'index' means whenever you visit http://localhost:3000/;; it would redirect to /sessions controller + /index action On Tuesday, April 16, 2013 12:30:35 AM UTC-7, Ruby-Forum.com User wrote: I've been analysing a rails

Re: [Rails] Re: Fail to pass id to foreign table

2013-04-16 Thread Colin Law
On 16 April 2013 12:22, Ryo Saeba li...@ruby-forum.com wrote: All right, thanks for pointing that out. I simply used %= debug @review % in my new-View of the reviews controller. Revieweing a game works by clicking on the review button in game#show. So having %= debug @review % in

[Rails] Better way for creating menu n rails, whe can i read about this?

2013-04-16 Thread Dmitrij B.
Hey Better way for creating menu in rails, whe can i read about this? Wich gems better use or manually add? Maybe have topics about this, whe can i read more? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] updaing a page continuously using ajax

2013-04-16 Thread Deepak A.
I had written a small web app that gets the date(or any data) from a external device and print it on screen(browser screen) continously without refreshing the page. I am using below form_tag inside view file (myapp/app/views/index.html.erb): %= form_tag(channel_get_dates_path(@channel, :write =

[Rails] Re: updaing a page continuously using ajax

2013-04-16 Thread Robert Walker
Deepak A. wrote in post #1105859: My question, Is it possible to make the date to display in text field continuously by pressing the button only once? I tried calling the Controller method inside a loop and ended with Double render error. is it correct way or to make changes in view file? You

[Rails] Re: Better way for creating menu n rails, whe can i read about this?

2013-04-16 Thread Robert Walker
Dmitrij B. wrote in post #1105858: Hey Better way for creating menu in rails, whe can i read about this? Wich gems better use or manually add? Maybe have topics about this, whe can i read more? You question is really to vague to answer properly. There are many different kinds of menus and

[Rails] Job as RoR back/end developer in International Gaming company in Berlin

2013-04-16 Thread atoribioruiz
Hello Ruby on Railersss, (I hope not to disturb too much this forum with a job offer) I need just one amazing Ruby on Rails developer to join an international gaming company in Berlin. It has offices in the US, South Korea and France and a great talented team right at the center of the city.

[Rails] [JOBS] (Snr. / Lead) Ruby Developers – you’re invited to join an fantastic VC backed Cloud business!

2013-04-16 Thread olivia . dunford
(Snr. / Lead) Ruby Developers – you’re invited to join an fantastic VC backed Cloud business based in Shoreditch, London to work on a unique and exciting, new platform! Think creating the eBay of cloud and you’ll be some way there. We have a multitude of opportunities spanning Ruby, PHP and

[Rails] Rails Developer Intern to Full-Time

2013-04-16 Thread Joshua Shane Martin
We're looking for a passionate Rails Developer to join our team. We've built a social network for higher education called Nfoshare, that allows students to connect to their classmates, professors, and other learning pros, while also helping the school gain valuable insight into their learning

[Rails] Re: Fail to pass id to foreign table

2013-04-16 Thread Ryo Saeba
All right. the show view of a single game has the url (games/:id). when I pste debug @review in the show view, it says that the review game_id has the id of the current game shown. Opening the review Form (which is the new Method of the review controller), the debug result shows, that now

[Rails] Re: [JOBS] (Snr. / Lead) Ruby Developers – you’re invited to join an fantastic VC backed Cloud busin

2013-04-16 Thread Wins Lin
Not sure that Ruby is the appropriate language for the project (for any serious project). Of course it is not my business. Just my 5 cents. -- 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

Re: [Rails] Rails Developer Intern to Full-Time

2013-04-16 Thread Scott Ribe
On Apr 16, 2013, at 8:04 AM, Joshua Shane Martin wrote: This would be an unpaid intern position for now... USA candidates only please. Both immoral and illegal. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message

Re: [Rails] Re: [JOBS] (Snr. / Lead) Ruby Developers – you’re invited to join an fantastic VC backed Cloud busin

2013-04-16 Thread Scott Ribe
On Apr 16, 2013, at 9:11 AM, Wins Lin wrote: Not sure that Ruby is the appropriate language for the project (for any serious project). Uh-huh, yeah right, sure... -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message

Re: [Rails] Re: Fail to pass id to foreign table

2013-04-16 Thread Hassan Schroeder
On Tue, Apr 16, 2013 at 8:04 AM, Ryo Saeba li...@ruby-forum.com wrote: I tried the approach with nested resources, like this resources :games do member do :reviews end end but now my helper methods like new_review_path are not working. Why would you expect them to?

[Rails] Re: MyApp/lib/ directory: How to deal with it?

2013-04-16 Thread Robert Walker
Wins Lin wrote in post #1105843: # In my create methon def create require myEmailValidator @result = EmailValidator.validate(params[:email_from_form]) end It works, but maybe is there a better way to work with it? Isn't it generally accepted practice to put require statements at

[Rails] Re: Better way for creating menu n rails, whe can i read about this?

2013-04-16 Thread Dmitrij B.
I did not mean html and css. I mean rails way. Maybe have helpers for this or use partial or better practice in rails -- 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

[Rails] An error occurred while installing jk-ferret (0.11.8.3), and Bundler cannot continue.

2013-04-16 Thread kanna
*Hi guys.. i got this type of error when i configured Gemfile then what to do?* gem thinking-sphinx gem 'ferret' Updating git://github.com/mark-moseley/linecache Fetching gem metadata from https://rubygems.org/... Fetching gem metadata from https://rubygems.org/.. Resolving

[Rails] Re: Rough sketch for a website

2013-04-16 Thread Jussi Hirvi
Any pointers? I really only need some pointers to show me direction. If someone is going to say program it yourself, I would be grateful for some tips that would make it easier. I would not want to write bad code, if I can avoid it. - Jussi On Tuesday, April 16, 2013 1:30:43 PM UTC+3, Jussi

Re: [Rails] An error occurred while installing jk-ferret (0.11.8.3), and Bundler cannot continue.

2013-04-16 Thread Colin Law
On 16 April 2013 20:20, kanna vtrka...@gmail.com wrote: Hi guys.. i got this type of error when i configured Gemfile then what to do? gem thinking-sphinx gem 'ferret' Installing jk-ferret (0.11.8.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension

[Rails] Asset not precompiled error even though log shows it compiled

2013-04-16 Thread Vell
Hello all, I'm trying to understand how to include a stylesheet that is inside a sub directory in my css assets folder. The folder to include is app/assets/css/fonts - folder of fonts and a stylesheet.css In my app/assets/css/application.css.scss I have included the following line: *=

[Rails] Re: Fail to pass id to foreign table

2013-04-16 Thread Ryo Saeba
oh you are right of course. well rake routes shows following: reviews_game GET/games/:id/reviews(.:format) games#reviews but I'm still confused, because this is the only route associated to my reviews, but shouldn't there be routes for new and show and edit? I thought I created a

[Rails] Re: Asset not precompiled error even though log shows it compiled

2013-04-16 Thread Vell
On Tuesday, April 16, 2013 3:51:37 PM UTC-4, Vell wrote: Hello all, I'm trying to understand how to include a stylesheet that is inside a sub directory in my css assets folder. The folder to include is app/assets/css/fonts - folder of fonts and a stylesheet.css Sorry guys. I

[Rails] Re: Fail to pass id to foreign table

2013-04-16 Thread Ryo Saeba
Update: Allright I tried this resources :games do member do get :followers end resources :reviews end (the member is for following purposes and has nothing to do with reviews) Now paths like new_game_review_path are generated, but now when I want to open a view, that

Re: [Rails] Re: Rough sketch for a website

2013-04-16 Thread Julian Leviston
Use small iterations - take the very first and tiniest thing you can do and do it. Then open it up for critique by people here. Julian On 17/04/2013, at 5:35 AM, Jussi Hirvi jushi...@gmail.com wrote: Any pointers? I really only need some pointers to show me direction. If someone is going to

[Rails] Re: Better way for creating menu n rails, whe can i read about this?

2013-04-16 Thread Robert Walker
Dmitrij B. wrote in post #1105899: I did not mean html and css. I mean rails way. Maybe have helpers for this or use partial or better practice in rails Which is precisely why I linked to the list on ruby-toolbox. They are examples of menu systems designed to work with Rails. And their

[Rails] Conditional respond_to doesn't do redirect

2013-04-16 Thread Wins Lin
I have such a code in my create method: respond_to do |format| if user.save() format.html {redirect_to(:action = show)} else format.js end end So if save() is successful I want full redirect to a different page. If not successful then no redirect, just show user an ajax message

Re: [Rails] Conditional respond_to doesn't do redirect

2013-04-16 Thread tamouse mailing lists
On Tue, Apr 16, 2013 at 7:15 PM, Wins Lin li...@ruby-forum.com wrote: I have such a code in my create method: respond_to do |format| if user.save() format.html {redirect_to(:action = show)} else format.js end end So if save() is successful I want full redirect to a