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
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
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
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
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
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
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:
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 =
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
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
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.
(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
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
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
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
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
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
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?
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
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
*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
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
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
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:
*=
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
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
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
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
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
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
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
31 matches
Mail list logo